Announcement

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

  • did_multiplegt_dyn - create table with results

    Dear Stata users,
    I want to create an output table to show my estimation results and import it on Latex. I want to show in my table the estimated effect and the number of observations. Here is my code so far:
    Code:
    did_multiplegt_dyn abstention municipality year treated, cluster(municipality) weight(balance) graph_off
    local effect=e(Effect_1)
    local obs=e(N_effect_1)
    outreg2 using "Results/Table.tex", replace addstat("Effect", `effect', "Observations",`obs')
    But I am obtaining the following error:
    Code:
    matrix e(b) not found; run/post a regression, or specify varlist for non-regression outputs
    r(111);
    I also want to add more results to the table.
    Code:
    did_multiplegt_dyn democrats municipality year treated, cluster(municipality) weight(balance) graph_off
    local effect=e(Effect_1)
    local obs=e(N_effect_1)
    outreg2 using "Results/Table.tex", append addstat("Effect", `effect', "Observations",`obs')
    did_multiplegt_dyn is an installed Stata package.
    How should I change my code?
Working...
X