Announcement

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

  • new issues with esttab

    Hi,

    I wrote a simple program to export the results of my crosstabs into an excel file using estab, matselrc, and putexcel. I used this program numerous times without problems but now I get weird results. I am using Stata 15.

    Code:

    global brfss obese

    foreach var in $brfss {

    capture noisily svy, subpop(if year==2010): tab mracealpha `var', row ci percent obs format (%7.1f)
    esttab ., cells("obs b(fmt(1)) lb(fmt(1)) ub(fmt(1)) se(fmt(1))")unstack noobs

    matlist r(coefs)
    matrix results=r(coefs)
    matlist results
    *return list
    matselrc results r1 , r(10/17) c(1/5)
    matlist r1

    }

Working...
X