Announcement

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

  • nonlinear least squares, including year dummy and industry fixed effect

    Hello all,

    May I ask how to add the year dummy and industry fixed effect into a nonlinear least squares model?

    I am using the following code. but I am confuse whether it is correct? if it is wrong, could you please teach me what code I should write?

    Code:
    nl (LN_Q = {b0} + ln(1+ {X1}*X1_variable+ {X2}*X2_variable)+ {b1}*year+{b2}*Industry+{b3}*Country),  variables(LN_Q X1_variable X2_variable X3_variable year Industry Country)
    Besides, the 'year" variable is still a number, is it ok? what should I do if I want to add it as a dummy variable?

    Many thanks in addvance!

  • #2
    menl might work.

    Comment


    • #3
      also, you could demean the data before hand, which is what xtreg does.

      Comment

      Working...
      X