Dear all, thanks in advance.
I have an issue that freaks me out.
I wonder if I'm wrong to set up the cross-structure of my data.
I have a study in which I have 500 surgeons (ID variable 1-500) in which a binary "success" outcome is measured.
"Success" is measured for each surgeon in a condition (surgery schedule: morning, afternoon, evening Variable "schedule") crossed with the variable "assisting by another surgeon" (variable "assisted". Three levels: no assistance, one surgeon, two surgeons).
In the model I also correct for hypothetical variables predicting the outcome.
After transforming the dataset to long and assuming an exchangeable matrix between random effects, the command I use is:
xi: melogit success i.schedule##i.assisted continuouspredictor i.categoricalpredictor || _all: R.schedule: || assisted:, or cov (exc)
It does not converge in any way or in any case takes a full day.
If, on the other hand, I consider the factors "schedule" and "assisted" nested and not crossed (ie I remove _all: R.) The model converges and gives me interpretable results.
Does anybody have ideas?
Thanks again!
Gianfranco
Related Posts with melogit with crossed (non nested!) factors does not work
Remove prefix in ID variable individual row namesI want to rename the individual rows in one column which represents the ID variable for each individ…
Cross sectional or panel dataDear Stata users, I will please like some explanation. I am working on the topic "the effect of chi…
Power analysis for conditional logistic regression with variable ratio matchingDoes anyone know how to do a power analysis for conditional logistic regression on matched case-cont…
tolong: a faster reshape longtolong, a faster implementation of reshape long, is now available on ssc. Type ssc install tolong an…
Transforming a quarterly variable into a monthly variable and merging two databasesDear Statalist, I'm looking to transform a quarterly variable into a monthly variable so that it ma…
Subscribe to:
Post Comments (Atom)
0 Response to melogit with crossed (non nested!) factors does not work
Post a Comment