Hi all,
I'm running the following regression:
xtivreg2 cycle_mean trade total_trades shares volatility jan feb mar apr may jun jul aug sep oct nov (take_cycle=event), fe cluster(stock1) first
I would like to save the residuals of the regression. The help to xtivreg2 suggests using predict newvar, e. However the same command is used to save the first difference of the residual. See below. When I plot the residual obtained with the predict command, it does look like a first difference. How do I get the residuals. Any help will be appreciated.
Elvira
From help xtivreg2
For the fixed-effects estimator, statistic is
e v_it, the idiosyncratic component of the error term
and is available only for the estimation sample.
For the first-differences estimator, statistic is
e v_it - v_it-1, the first-differenced idiosyncratic component
I'm running the following regression:
xtivreg2 cycle_mean trade total_trades shares volatility jan feb mar apr may jun jul aug sep oct nov (take_cycle=event), fe cluster(stock1) first
I would like to save the residuals of the regression. The help to xtivreg2 suggests using predict newvar, e. However the same command is used to save the first difference of the residual. See below. When I plot the residual obtained with the predict command, it does look like a first difference. How do I get the residuals. Any help will be appreciated.
Elvira
From help xtivreg2
For the fixed-effects estimator, statistic is
e v_it, the idiosyncratic component of the error term
and is available only for the estimation sample.
For the first-differences estimator, statistic is
e v_it - v_it-1, the first-differenced idiosyncratic component
Comment