APLICACIONES ECONOMÉTRICAS LIC. EN ECONOMIA PRÁCTICA 16/5/03
VIOLACIÓN DE LAS HIPÓTESIS BÁSICAS EN M.C.O.: CONTRASTES DE ESPECIFICACIÓN ERRÓNEA RATS/EVIEWS
1.1 HIPÓTESIS BASICAS EN M.C.O. : RATS/EVIEWS
4. CONTRASTES DE ESPECIFICACIÓN ERRÓNEA USANDO RATS v5.0 RATS
Instrucción STATISTICS: STATISTICS nombre_resíduos Muestra un resumen de los momentos muestrales de los datos de una serie, y algunos contrastes de hipótesis iniciales que te den una idea sobre la distribución de la que proviene la muestra. –Opciones: RATS Test de Bera-Jarque (BJ) de normalidad
*a) Test BJ de normalidad: STAT EPSILON Programa LINREG_INV3.PRG: SALIDA: RATS Statistics on Series EPSILON Quarterly Data From 1980:01 To 2002:04 Observations 92 Sample Mean Variance Standard Error SE of Sample Mean t-Statistic Signif Level (Mean=0) Skewness Signif Level (Sk=0) Kurtosis Signif Level (Ku=0) Jarque-Bera Signif Level (JB=0)
RATS Test de White de heteroscedasticidad *b) Test de White de heteroscedasticidad SET TREND_2 = TREND**2 SET PNB_2 = PNB**2 SET TI_R_2 = TI_R**2 SET TRENDxPNB = TREND*PNB SET TRENDxTI_R = TREND*TI_R SET PNBxTI_R = PNB*TI_R SET EPSILON_2 = EPSILON**2 *Regresión auxiliar: LINREG EPSILON_2 / #CONSTANT TREND PNB TI_R TREND_2 PNB_2 TI_R_2 TRENDxPNB$ TRENDxTI_R PNBxTI_R *Estadístico y contraste: DISPLAY 'WHITE TEST:' COMPUTE WHITE=%NOBS*%RSQUARED CDF CHISQUARED WHITE %NREG Programa LINREG_INV3.PRG:
SALIDA: RATS Linear Regression - Estimation by Least Squares Dependent Variable EPSILON_2 Quarterly Data From 1980:01 To 2002:04 Usable Observations 92 Degrees of Freedom 82 Centered R** R Bar ** Uncentered R** T x R** Mean of Dependent Variable Std Error of Dependent Variable Standard Error of Estimate Sum of Squared Residuals e+13 Regression F(9,82) Significance Level of F Durbin-Watson Statistic Variable Coeff Std Error T-Stat Signif ********************************************************************** 1. Constant e TREND PNB TI_R TREND_ PNB_ TI_R_ TRENDXPNB TRENDXTI_R PNBXTI_R WHITE TEST: Chi-Squared(10)= with Significance Level
Instrucción LINREG: LINREG(opciones) depvar inicio fin (serie_residuos) (serie_coefs) # exvar_1 exvar_2... exvar_n Se puede corregir medinate la elección apropiada de las opciones. –Opciones: »ROBUSTERRORS =>Unicamente con esta opción permite la corrección de White de la matriz de VAR-COV consistente con heteroscedasticidad. RATS Corrección de la Matriz de Var-Cov consistente con Heteroscedasticidad: WHITE
*Correccion de la VAR-COV de m.c.o. de WHITE: LINREG(ROBUSTERRORS) INVR / #CONSTANT TREND PNB TI_R Programa LINREG_INV3.PRG: RATS
SALIDA: EVIEWS Linear Regression - Estimation by Least Squares Dependent Variable INVR Quarterly Data From 1980:01 To 2002:04 Usable Observations 92 Degrees of Freedom 88 Centered R** R Bar ** Uncentered R** T x R** Mean of Dependent Variable Std Error of Dependent Variable Standard Error of Estimate Sum of Squared Residuals Durbin-Watson Statistic Variable Coeff Std Error T-Stat Signif ************************************************************************** 1. Constant TREND PNB TI_R
*c) Test LM de autocorrelación de orden hasta 5: *Regresión auxiliar para un orden de autocorrelación p=5: LINREG EPSILON # CONSTANT TREND PNB TI_R EPSILON{1 TO 5} *Estadístico y contraste para un orden de autocorrelación p=5: COMPUTE LM=%NOBS*%RSQUARED DISPLAY ' LM TEST:' CDF CHISQUARED LM 5 RATS Test LM de Breusch-Godfrey de autocorrelación Programa LINREG_INV3.PRG:
SALIDA: RATS Dependent Variable EPSILON Quarterly Data From 1981:02 To 2002:04 Usable Observations 87 Degrees of Freedom 78 Centered R** R Bar ** Uncentered R** T x R** Mean of Dependent Variable Std Error of Dependent Variable Standard Error of Estimate Sum of Squared Residuals Regression F(8,78) Significance Level of F Durbin-Watson Statistic Variable Coeff Std Error T-Stat Signif **************************************************************************** *** 1. Constant TREND PNB TI_R EPSILON{1} EPSILON{2} EPSILON{3} EPSILON{4} EPSILON{5} LM TEST: Chi-Squared(5)= with Significance Level
Instrucción LINREG: LINREG(opciones) depvar inicio fin (serie_residuos) (serie_coefs) # exvar_1 exvar_2... exvar_n Se puede corregir medinate la elección apropiada de las opciones. –Opciones: »ROBUSTERRORS =>Unicamente con esta opción permite la corrección de White de la matriz de VAR-COV consistente con heteroscedasticidad. »LAGS=PNW => Calcular a parte PNW=floor(4*(T/100) 2/9 ).En el ejemplo LAGS=3 »DAMP=1 RATS Corrección de la Matriz de Var-Cov consistente con Autocorrelación y/o Heteroscedasticidad: NEWEY-WEST
* Correccion de la VAR-COV de m.c.o. de NEWEY-WEST: LINREG(ROBUSTERRORS,LAGS=3,DAMP=1) INVR / #CONSTANT TREND PNB TI_R Programa LINREG_INV3.PRG: RATS
SALIDA: RATS Linear Regression - Estimation by Least Squares Dependent Variable INVR Quarterly Data From 1980:01 To 2002:04 Usable Observations 92 Degrees of Freedom 88 Centered R** R Bar ** Uncentered R** T x R** Mean of Dependent Variable Std Error of Dependent Variable Standard Error of Estimate Sum of Squared Residuals Durbin-Watson Statistic Variable Coeff Std Error T-Stat Signif **************************************************************************** 1. Constant TREND PNB TI_R