Professional Documents
Culture Documents
clear all
ren var1 t
gen NumProy=var2/1000000
gen MWS=var3/1000000
gen PKWH=var4/1000000
gen PD=var5/1000000
gen TRM=var6/1000000
gen IPC=var7/1000000
gen IPP=var8/1000000
tsset t, monthly
*d
*d t
*twoway (tsline NumProy, lcolor(blue)) (tsline MWS, yaxis(2) lcolor(red)) //Aqui grafico en color
rojo el numero de proyectos en gráfica comparada con la energia en MW
*twoway (tsline PKWH, lcolor(blue)) (tsline PD, yaxis(2) lcolor(red)) (tsline TRM, yaxis(2)
lcolor(dkorange)) //Comparar precios del diesesl, TRM y el del KWH
//Luego de realizar el dfuller a todas las todas las variables, tengo que
//A las que debo realizar flexibilizacion por NO ser estacionarias, son:
gen LPD=ln(PD)
gen DLPD=D.LPD
*twoway (tsline PD, yaxis(2) lcolor(red)) (tsline DLPD) //Comparamos el antes y el despues de PD y
DLPD
*twoway (tsline PKWH) (tsline DPKWH, yaxis(2)) //comparo antes y despues del PKWH y su
diferencia sin log
* twoway (tsline IPP, lcolor(blue)) (tsline DIPP, yaxis(2) lcolor(red)) // comparacion IPP y su primera
diferencia
*estat dwatson
gen DNP=D.NumProy
reg MWS L.EC DNP DPKWH DIPP DLPD IPC NumProy, nocons
estat dwatson
predict Yhat, xb