Announcement

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

  • Zoib regression error r(198)

    Dear Statalists,

    Using zeroinflate() and oneinflate() options in zoib regression, Stata tells me that the options are not allowed because there are not 0s and 1s in the dependent variable, but this is not true.
    Do you have any idea about the reason why Stata returns this error? I leave the code below, in case it helps:

    zoib vax_kid_beta i.Treatchild_enc, oneinflate(i.Treatchild_enc) zeroinflate(i.Treatchild_enc) cluster(ResponseId)

    Thank you in advance!

  • #2
    Like any other estimation command, zoib will exclude all observations that have one or more missing values on any of the variables in the model. So one reason for that message could be that there are no 0s and 1s in the remaining observations.
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Hi Maarten, thank you for your answer! I tried to run the regression without the clustered standard errors and it worked. Apparently they are the problem, but I don't understand why..

      Comment

      Working...
      X