Announcement

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

  • Outreg2 and other issues with xtprobit

    Hi all,

    I have a few questions regarding my code below:

    1- Using
    Code:
    xtset dep time
    gives me this error:
    Code:
    . xtset dep time
    repeated time values within panel
    r(451);
    end of do-file
    r(451);
    Then I use
    Code:
    xtset dep
    it works. Is there any problem here? I have an unbalanced dataset.

    2_ Using this code:
    Code:
    xtset dep
    #delimit;
    xtprobit  dep indep, vce(cluster id1 id2)
    outreg2 using Results.xls,  replace  excel title("Results_1")  keep(dep) dec(3) label;
    #delimit cr
    so I cluster standard errors at the id-pair level. Is this correct?

    3- Using outreg:
    Code:
    xtset dep
    #delimit;
    xtprobit  dep indep, vce(cluster id1 id2)
    outreg2 using Results.xls,  replace  excel title("Results_1")  keep(dep) dec(3) label;
    #delimit cr
    gives me this error:
    Code:
    invalid 'replace'
    r(198);
    end of do-file
    r(198);
    Note that when I use reg the outreg2 works very well.

    Thank you for your help
    JL
Working...
X