Announcement

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

  • Dsge

    Code:
    dsge (nx = -{sigma}*con -{delta}*la+ {psi}*mw+{theta}* ToT)  ///
     (con=E(F.con)-1/{sigma}*(log{beta}+r) ///
     (F.mw = mw+ v)   ///
     (F.v = {rhov}*v, state)
    I tried to regress this DSGE model but there's something wrong. STATA sent a message "invalid something: unmatched open parenthesis or bracket"
    could you fix the problem?


  • #2
    Try the following, I added a missing closing paren ")".
    Code:
    dsge (nx = -{sigma}*con -{delta}*la+ {psi}*mw+{theta}* ToT)  ///
     (con=E(F.con)-1/{sigma}*(log{beta}+r)) ///
     (F.mw = mw+ v)   ///
     (F.v = {rhov}*v, state)

    Comment


    • #3
      Thank you very much!

      Comment


      • #4
        Code:
        dsge (nx = -{sigma}*con -{delta}*la+ {psi}*mw+{theta}* ToT)  ///
         (con=E(F.con)-1/{sigma}*(log{beta}+r)) ///
         (F.mw = mw+v)   ///
         (F.v = {rhov}*v, state)

        Code:
        dsge (nx = -{sigma}*con -{delta}*la+ {psi}*mw+{theta}* ToT)  ///
         (con=E(F.con)-1/{sigma}*(log{beta}+r)) ///
         (w = {phim}*mw+v)   ///
         (p={phip}*mw+u)  ///
         (F.v = {rhov}*v, state) ///
        (F.u = {rhou}*u, state)

        Sir, I have more questions about DSGE.
        When I regress the first one, the stata sent a message "state equation incorrectly specified", the second one " cannot have more variables than shocks"
        How can I handle this?
        Last edited by Yunjeong Kwon; 16 Nov 2023, 05:40.

        Comment

        Working...
        X