在anova命令中,常见格式如下
anova y x1 x2 x1#x2
regress
可以在方差分析的基础上,具体得到交互项x1#x2的回归系数。
但是现在我正在处理一个面板数据,尽管用anova+regress命令也可以跑出结果,但是心里开始疑惑了:
手册中关于anova的描述如下,没有说不能处理面板数据
The anova command fits analysis-of-variance (ANOVA) and analysis-of-covariance (ANCOVA) models for balanced and unbalanced designs,
including designs with missing cells; for repeated-measures ANOVA; and for factorial, nested, or mixed designs.
The regress command will display the coefficients, standard errors, etc., of the regression model underlying the last run of anova.
但是regress 这个命令是专用于横截面数据回归的,用在面板数据里合适么?
因此,我想请教各位高手及热心的版主:1、anova命令是否适用于面板数据;2,如果适用,在anova命令之后,用regress是否合适?
谢谢