Reg. With IV.do
Hey!
I'm pretty new with stata and have been trying lately to obtain the demand and supply of natural gas for the US (short and long term)
I have been successful with my regressions so far (log(Ct)=log (Ct-1) + log (Pt)+Weather+date+ui, with absorbed fixed effects (by month and region), robust error and using an instrumental variable for the price). Also, my regressions are separated between winter and summer elasticities (with dummies) for consumption to find the difference in winter and summer demand.
areg log_con_total hat_log_spot_price winter_hat lag_log_con_total w_lag_log_con_total hdd date, absorb(region_x_mes) robust
areg log_prod_total hat_log_spot_price winter_hat w_lag_log_prod_total lag_log_prod_total date hdd, absorb (region_x_mes) robust
(hat_log_spot_price is the IV, w_ implies the winter dummy, hdd is for weather)
Now I want to graph the supply and demand for those regressions, but do not know how (how do I get the supply and demand equations from results?); I especially want to work with short term supply and demand (so I don't care about long term elasticities) and separate winter and summer demand.
Any comments might help,
Thanks for your time
Hey!
I'm pretty new with stata and have been trying lately to obtain the demand and supply of natural gas for the US (short and long term)
I have been successful with my regressions so far (log(Ct)=log (Ct-1) + log (Pt)+Weather+date+ui, with absorbed fixed effects (by month and region), robust error and using an instrumental variable for the price). Also, my regressions are separated between winter and summer elasticities (with dummies) for consumption to find the difference in winter and summer demand.
areg log_con_total hat_log_spot_price winter_hat lag_log_con_total w_lag_log_con_total hdd date, absorb(region_x_mes) robust
areg log_prod_total hat_log_spot_price winter_hat w_lag_log_prod_total lag_log_prod_total date hdd, absorb (region_x_mes) robust
(hat_log_spot_price is the IV, w_ implies the winter dummy, hdd is for weather)
Now I want to graph the supply and demand for those regressions, but do not know how (how do I get the supply and demand equations from results?); I especially want to work with short term supply and demand (so I don't care about long term elasticities) and separate winter and summer demand.
Any comments might help,
Thanks for your time

Comment