clear all set more off ******************************************************************************** ** P1: BREUSCH - GODFREY ******************************************************* ******************************************************************************** use "C:\Users\Toshiba\Desktop\Ronald\Universidad\Ramos (Equipo Docente)\Aplicaciones de probabilidades y estadísticas para la gestión 2017-1\Auxiliares\Auxiliar 09\Auxiliar 09 - BD Test de Breusch-Godfrey.dta", clear tsset t ** HACER TEST "A MANO" ********************************************************* reg inflacion desempleo l.inflacion predict u, resid reg u l.u ** HACER TEST CON COMANDO DE STATA ********************************************* reg inflacion desempleo l.inflacion estat bgodfrey, lags(1/1) ******************************************************************************** ** P2: DICKEY - FULLER AUMENTADO ********************************************** ******************************************************************************** import excel "C:\Users\Toshiba\Desktop\Ronald\Universidad\Ramos (Equipo Docente)\Aplicaciones de probabilidades y estadísticas para la gestión 2017-1\Auxiliares\Auxiliar 09\Auxiliar 09 - BD Test de Dickey-Fuller.xlsx", sheet("Hoja1") firstrow clear tsset t ** HACER TEST "A MANO" ********************************************************* dfuller y, noconstant regress lags(4) ** HACER TEST CON COMANDO DE STATA ********************************************* regress D.y L.y LD.y L2D.y L3D.y L4D.y, noconstant