Announcement

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

  • IV Code error --- invalid syntax

    Hello

    I am trying to run the following IV regression in the do file but getting the error message please.


    Error

    . outreg2 ed using "abc.csv", stats(coef se) bdec(3) replace addstat(Mean of Dependent Variable, r(mean), First Stage F-Test,
    > e(widstat))
    invalid syntax




    code

    *IV ESTIMATES
    xi: ivreg2 child_alive (ed=dum) run1 run2 i.child_birthyear i.child_sex i.year i.region i.urban if age_80>=9 & age_80<=20 & age_80~=14 & age_80~=15, r cluster(group age_80)
    qui sum child_alive if e(sample)
    outreg2 ed using "abc.csv", stats(coef se) bdec(3) replace addstat(Mean of Dependent Variable, r(mean), First Stage F-Test, e(widstat))


    Please help me to resolve this issue

    Thanks

  • #2
    I am trying to share the data using the dataex command

    but getting this message please

    dataex
    input statement exceeds linesize limit. Try specifying fewer variables
    r(1000);


    Comment

    Working...
    X