Announcement

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

  • using the outreg2 with addstats gives a invalid syntax result

    I have the following code of a two way fixed effects:

    Code:
    cgmreg g wtem wtem_initxtilegdp1 RY* i.cc_num, cluster(parent_num rynum)
    
    lincom wtem + wtem_initxtilegdp1
    local temeffectpoor_coeff = r(estimate)
    local temeffectpoor_se= r(se)
    test wtem + wtem_initxtilegdp1 = 0
    local temeffectpoor_p = r(p)
    outreg2 wtem wtem_initxtilegdp1 using Table2cluster, excel less(0) nocons bdec(3) append adec(3) adds("Tem effect on poor countries",`temeffectpoor_coeff',"SE1",`temeffectp oor_se',"p1", `temeffectpoor_p')
    When I run it an invalid syntax display appears. I know the problem comes from the addstats part, I've tried to find a solution but I'm not able to find anything that works.
    Thank You for everything.
Working...
X