Hello,
I ran a random-effects logistic regression model in Stata 16.1, but the following error occurred.
. xtlogit st01 c.dhea_s_3cn, i(id) re
outcome does not vary; remember:
0 = negative outcome,
all other nonmissing values = positive outcome
r(2000);
However, I checked the frequency of this variable in the data and did not find any missing values.

Could anyone tell me how to solve this problem?
I ran a random-effects logistic regression model in Stata 16.1, but the following error occurred.
Code:
xtlogit st01 c.dhea_s_3cn i.wave, i(id) re
outcome does not vary; remember:
0 = negative outcome,
all other nonmissing values = positive outcome
r(2000);
However, I checked the frequency of this variable in the data and did not find any missing values.
Could anyone tell me how to solve this problem?

Comment