📄 anova_postestimation.hlp
字号:
{smcl}
{* 04may2005}{...}
{cmd:help anova postestimation}{...}
{right:dialogs: {bf:{dialog regres_p:predict}} {bf:{dialog testanova:test}} {bf:{dialog anova_estat:estat}}{space 6}}
{right:plot dialogs: {bf:{dialog acprplot}} {bf:{dialog avplot:avplots}} {bf:{dialog cprplot}}}
{right:{bf:{dialog lvr2plot}} {bf:{dialog rvfplot}} {bf:{dialog rvpplot}}}
{right:also see: {helpb anova}{space 15}{space 6}}
{hline}
{title:Title}
{p2colset 5 33 35 2}{...}
{p2col:{hi:[R] anova postestimation} {hline 2}}Postestimation tools for anova
{p_end}
{p2colreset}{...}
{title:Description}
{pstd}
The following postestimation commands are of special interest after {opt anova}:
{synoptset 17}{...}
{p2coldent:commands}options{p_end}
{synoptline}
{synopt:{helpb regress_postestimation##estathett:estat hettest}}tests for heteroskedascity{p_end}
{synopt:{helpb regress_postestimation##estatovt:estat ovtest}}Ramsey regression specification-error test for omitted variables{p_end}
{synopt :{helpb regress postestimation##acprplot:acprplot}}augmented component-plus-residual plot{p_end}
{synopt :{helpb regress postestimation##avplot:avplot}}added-variable plot{p_end}
{synopt :{helpb regress postestimation##avplot:avplots}}all added-variable plots in a single image{p_end}
{synopt :{helpb regress postestimation##cprplot:cprplot}}component-plus-residual plot{p_end}
{synopt :{helpb regress postestimation##lvr2plot:lvr2plot}}leverage-versus-squared-residual plot{p_end}
{synopt :{helpb regress postestimation##rvfplot:rvfplot}}residual-versus-fitted plot{p_end}
{synopt :{helpb regress postestimation##rvpplot:rvpplot}}residual-versus-predictor plot{p_end}
{synoptline}
{p2colreset}{...}
{pstd}
In addition, the following standard postestimation commands are available:
{synoptset 17}{...}
{synopt:commands}options{p_end}
{synoptline}
INCLUDE help post_adjust2
INCLUDE help post_estat
INCLUDE help post_estimates
INCLUDE help post_lincom
INCLUDE help post_linktest
{synopt:{helpb regress postestimation##predict:predict}}predictions, residuals, influence statistics, and other diagnostic measures{p_end}
{synopt:{helpb anova postestimation##test:test}}Wald tests for simple and composite linear hypotheses{p_end}
{synoptline}
{p2colreset}{...}
{title:Special-interest postestimation commands}
{pstd}
In addition to the common {helpb estat} commands, {opt estat hettest} and
{opt estat ovtest} are also available. The syntax is the same as after
{opt regress}, except that {opt estat hettest} does not allow the {opt rhs}
option; see {help regress postestimation}.
{title:Syntax for predict}
{pstd}
{helpb predict} after {opt anova} follows the same syntax as {opt predict}
after {opt regress} and can provide predictions, residuals, standardized
residuals, studentized residuals, the standard error of the residuals, the
standard error of the prediction, the diagonal elements of the projection (hat)
matrix, and Cook's D. See {help regress postestimation} for details.
{marker test}{...}
{title:Syntax for test after anova}
{opt te:st,} {opt test(matname)} [{opt m:test}[{opt (opt)}] {opt matvlc(matname)}] {right:syntax 1 }
{opt te:st} [{it:exp} {cmd:=} {it:exp}] [{cmd:,} {opt a:ccumulate} {opt not:est} {opt matvlc(matname)} {right:syntax 2 }
{opt te:st} [{it:term} [{it:term ...}]] [{cmd:/} {it:term} [{it:term ...}]] [{cmd:,} {opt s:ymbolic}] {right:syntax 3 }
{opt te:st,} {opt showord:er} {right:syntax 4 }
{p 4 6 2}
where {it:exp} must have references to coefficients enclosed in {opt _coeff[]}
(or synonym {opt _b[]}) and where {it:term} is as defined for {opt anova}.
{p2colset 5 17 19 2}{...}
{p2col :syntax 1}test expression involving the coefficients of the underlying regression model; you provide information as a matrix{p_end}
{p2col :syntax 2}test expression involving the coefficients of the underlying regression model; you provide information as an equation{p_end}
{p2col :syntax 3}test effects and show symbolic forms{p_end}
{p2col :syntax 4}show underlying order of design matrix, which is useful when
constructing {it:matname} argument of the {cmd:test()} option{p_end}
{p2colreset}{...}
{title:Options for test after anova}
{phang}
{opt test(matname)} is required with the first syntax of {opt test}. The
rows of {it:matname} specify linear combinations of the underlying design
matrix of the ANOVA that are to be jointly tested. The columns correspond to
the underlying design matrix (including the constant if it has not been
suppressed). The column and row names of {it:matname} are ignored.
{pmore}
A listing of the constraints imposed by the {opt test()} option is presented
before the table containing the tests. You should examine this table to verify
that you have applied the linear combinations you desired. Typing
{cmd:test, showorder} allows you to examine the ordering of the columns for
the design matrix from the ANOVA.
{phang}
{opt mtest}[{opt (opt)}] specifies that tests are performed for each condition
separately. {it:opt} specifies the method for adjusting p-values for multiple
testing. Valid values for {it:opt} are:
{p2colset 20 34 37 2}{...}
{p2col :{opt b:onferroni}}Bonferroni's method{p_end}
{p2col :{opt h:olm}}Holm's method{p_end}
{p2col :{opt s:idak}}Sidak's method{p_end}
{p2col :{opt noadj:ust}}no adjustment is to be made{p_end}
{p2colreset}{...}
{pmore}
Specifying {opt mtest} without an argument is equivalent to
{cmd:mtest(noadjust)}.
{phang}
{opt matvlc(matname)}, a programmer's option, saves the variance{c -}covariance
matrix of the linear combinations involved in the suite of tests. For the
test Lb = c, what is returned in {it:matname} is LVL', where V
is the estimated variance{c -}covariance matrix of b.
{phang}
{opt accumulate} allows a hypothesis to be tested jointly with the previously
tested hypotheses.
{phang}
{opt notest} suppresses the output. This option is useful when you are
interested only in the joint test with additional hypotheses specified in a
subsequent call of {opt test, accumulate}.
{phang}
{opt symbolic} request the symbolic form of the test rather than the test
statistic. When this option is specified without any terms
({opt test, statistic}), the symbolic form of the estimable functions is
displayed.
{phang}
{opt showorder} causes {opt test} to list the definition of each column in the
design matrix. {opt showorder} is not allowed with any other option.
{title:Examples}
{phang}{cmd:. anova response t / c|t / d|c|t / p|d|c|t /}{p_end}
{p 4 35 2}{cmd:. test t / c|t d|c|t}{space 10}(test {cmd:t} with pooled {cmd:c|t} and {cmd:d|c|t} terms){p_end}
{p 4 35 2}{cmd:. test c|t d|c|t / p|d|c|t}{space 4}(test pooled {cmd:c|t} and {cmd:d|c|t} terms with {cmd:p|d|c|t}){p_end}
{phang}{cmd:. anova y a b a*b}{p_end}
{p 4 35 2}{cmd:. test a, symbolic}{space 12}(symbolic form of test of {cmd:a}){p_end}
{p 4 35 2}{cmd:. predict yhat}{space 16}(see {helpb regress} and {helpb predict}){p_end}
{title:Also see}
{psee}
Manual: {bf:[R] anova postestimation}
{psee}
Online:
{helpb anova};{break}
{helpb adjust},
{helpb regress postestimation##acprplot:acprplot},
{helpb regress postestimation##avplot:avplot},
{helpb regress postestimation##avplots:avplots},
{helpb regress postestimation##cprplot:cprplot},
{helpb estimates},
{helpb lincom},
{helpb linktest},
{helpb regress postestimation##lvr2plot:lvr2plot},
{helpb regress postestimation},
{helpb regress postestimation##rvfplot:rvfplot},
{helpb regress postestimation##rvpplot:rvpplot},
{helpb test}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -