Announcement

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

  • Beta regression and outreg2

    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

  • #2
    You didn't get a quick answer. You'll increase your chances of a useful answer by following the FAQ on asking questions - provide Stata code in code delimiters, readable Stata output, and sample data using dataex. Particularly when you have a syntax error, precise information on what you entered is essential.

    I've never worked with betareg. The obvious strategy would be to start with the identical outreg2 statement that works and move one step at a time from there. It may turn out that you need to move to putdocx (https://huapeng01016.github.io/webinar2/#/putdocx for an introduction).

    Comment

    Working...
    X