Announcement

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

  • outreg2 displaying reference category

    Hello,

    It's a general question: I am running a regression and exporting the output table by using outreg2.
    I have reference group in the regression and since I wanted to display the reference group in the table, I used the below code:
    Code:
    reghdfe `var'_1L ib3.p_LogLP_VA LogL_av if country != "`cty_exclude'" [aw=weightvar], a(`FElbl13') vce(cluster i.cty#i.ind_a38) allbaselevels
        levelsof country if e(sample)
        local n_countries = `r(r)'
        levelsof ind_a38 if e(sample)
        local n_inds = `r(r)'
    
        outreg2 using "1y_`var'_reg.doc", replace dta ctitle(`model_name') label ///    
                addtext(Fixed effects, `FElbl13', h, Countries, `n_countries', Industries, `n_inds')
    I see that baseline (reference) group has been added in the output table, however, if I see that .xls file where I exported the table, the baseline is still omitted.
    How can I make them displayed in the exported file as well?

    Thank you!
Working...
X