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
Mixed model interaction command reports error in Mac version of stataHi, this is my first time posting. I have been using stata for sometime now and had no problem in ru…
Flipping tables using eststo.Hi, I have a question concerning the construction of tables using eststo and esttab and posting them…
generating a new variable that is the result of extracting individual data points from a datasetHello I have data for historical breast cancer mortality rates for countries and I'd like to extract…
how to run a quantile regression for estimating panel data models using instrumental variable?Hi I am working on an economic problem using the quantile regression model of panel data. I need to …
-atmeans- option with marginsMy question is about best practices while computing marginal effects. When should the option -atmean…
Subscribe to:
Post Comments (Atom)
0 Response to melogit with crossed (non nested!) factors does not work
Post a Comment