El Wednesday 09 January 2008 16:26:16 Allin Cottrell escribió:
On Wed, 9 Jan 2008, Ignacio Diaz-Emparanza wrote:
> I am trying to write a script that, based on a regression with a
> lot of variables and lags, drop unsignificant variables and
> leave only the significant regressors...
Funny you should ask... I've just finished adding documentation
("help omit") and a GUI handle for the newish --auto option to the
omit command.
ols y 0 xlist
omit --auto
sequentially omits the variable with the highest p-value, stopping
when the highest (two-sided) p-value is less than 0.10. You can
adjust the cutoff p-value in this way:
omit --auto=0.05
The GUI model test item now has an option to do sequential
omission, with a spinner for the p-value to be used.
That's perfect !!
But, what does mean "sequenciallly" here?
Estimate the model, omit the variable with the highest p-value, estimate the
model without this variable, ... or is this command based on only the first
estimation and applying sequential F tests?
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU
Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.et.bs.ehu.es