Dear all,
I am trying to use outreg2 to export results of a beta regression with weighted data and with a scale function. More specifically, the command looks like this
betareg var1 var2 var3 …var20 [pweight = ‘weightname’], vce(cluster var20) scale(var1 var2 var3 …var20)
The following didn't work:
outreg2 using myfile, stats (coef se)
or saving first the results with est store:
est store Model1
outreg2 [Model1] using myfile,excel replace label
I get the error 'invalid syntax, r(198)'. My stata version is 15.1.
I would also like to point out that if i don't use sampling weights (pweight), 'outreg2 using myfile, stats (coef se)' works just fine.
Does anyone know how to handle this?
Thank you very much
I am trying to use outreg2 to export results of a beta regression with weighted data and with a scale function. More specifically, the command looks like this
betareg var1 var2 var3 …var20 [pweight = ‘weightname’], vce(cluster var20) scale(var1 var2 var3 …var20)
The following didn't work:
outreg2 using myfile, stats (coef se)
or saving first the results with est store:
est store Model1
outreg2 [Model1] using myfile,excel replace label
I get the error 'invalid syntax, r(198)'. My stata version is 15.1.
I would also like to point out that if i don't use sampling weights (pweight), 'outreg2 using myfile, stats (coef se)' works just fine.
Does anyone know how to handle this?
Thank you very much
Comment