My DV is a binary variable, and each respondent was surveyed once a year for five years. So, each respondent has five repeated measures. In the data, the respondent identifier is the variable ID. I also have time-varying covariates IV1, IV2, and time-invariant covariates IV3 and IV4, and a time variable Year. I want to use a mixed-effects logistic regression as follows:
Code:
melogit DV IV1 IV2 IV3 IV4 Year || ID: Year, cov(un)
0 Response to Mixed-effects logistic regression for panel data
Post a Comment