Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help: Graph Supply and Demand from Regression

    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
    Attached Files
    Last edited by Ines Valenzuela; 12 May 2017, 19:19.

  • #2
    No one responded quickly to your question. You'll increase your chances of a helpful answer if you follow the FAQ on asking questions - provide Stata code in code delimiters, Stata output, and sample data. Most of the folks on this list do not open files. Also, try to simplify your code to what is necessary to demonstrate the problem. Asking us to figure out what w_lag_log_con_total means is unreasonable.

    Since you haven't bothered to define your variables, I can't even guess what you've done. I am not an economist, but I thought supply and demand were often used as examples in justifying the need for a simultaneous model. If you had a simultaneous model, then you'd have separate equations for supply and demand.

    You certainly can predict log_con_total. You'll probably want to remove the log. Then you can plot it against anything you have.

    Comment

    Working...
    X