rollreg
rollreg是用来一个实现滚动回归(rolling regression)的Stata第三方命令,作者为波士顿学院的Christopher F. Baum。rollreg处理的数据为时间序列数据(time-series data),因此使用前必须使用tsset命令声明数据。 公卫家园
公卫论坛
ssc install rollreg 公卫考场
help rollreg 公卫人
rollreg computes three different varieties of rolling regression estimates. With the move() option, moving-window estimates of the specified window width are computed for the available sample period. With the add() option, that number of periods are initially used for estimation, and the sample is extended one period at a time through the remaining sample. With the dropfirst() option, the regression is estimated for the entire sample, and then repeated, dropping initial observations until that number of observations have been excluded. All three forms of the command generate timeseries of R^2s, RMSEs, coefficient estimates and their estimated standard errors for each period. Graphs are also optionally provided, juxtaposing the rolling regression estimates with those resulting from a single regression over the entire sample period. The routine can also be applied to either a single unit's data from a panel or to panel data. 公卫论坛
附件列表
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。