Announcement

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

  • using coefplot and nlcom after running an error correction model

    Dear Statalisters,

    I am estimating an error correction model. I am trying to understand how to use coefplot after using nlcom to calculate the long-term effects of the explanatory variables.

    Here is an example of what I am trying to do

    webuse lutkepohl2
    tsset
    regress d.ln_inv l.ln_inv d.ln_inc l.ln_inc d.ln_consump l.ln_consump

    * The long-term effect of changes in ln_inc
    nlcom (_b[l.ln_inc]/-(_b[L1.ln_inv]))

    * The long-term effect of changes in ln_consump
    nlcom (_b[l.ln_consump]/-(_b[L1.ln_inv]))

    I would now like to use coefplot to display both of these long-term coefficients and the short-term coefficients estimated earlier in one graph. Thanks for your help!
Working...
X