Announcement

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

  • error message in -plausexog-

    I am running -plausexog- (ssc install) but I am getting an error message.

    Code:
    ivreg2 z y1 y2 (x=IV1 IV2)
    
    plausexog uci z y1 y2 (x = IV1 IV2), xomega(IV1 IV2) gmin(0.05 0.05) gmax(0.07 0.07)
    
    You must define as many gamma values as instrumental variables
    If instruments are believed to be valid, specify gamma=0 for gmin and gmax
    r(200);
    Please tell me where am I going wrong? I am specifying two values in gmin and gmax.

  • #2
    I figured out the answer myself. I was using a factor variable as an IV: when I removed the factor notation, the error vanished. It seems like the factor variable was being considered as "two" variables, hence Stata asked for more gamma parameters to be specified.

    Comment

    Working...
    X