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
Trying to make a plot with median and CIHi, I would like to create a plot that shows the median of a variable within two different groups w…
Child immunization for NigeriaHello everyone. I am working with Stata where I'm trying to combine the different variables on chil…
Generating decile portfolio'sDear Statalist, I would like to ask for help regarding a question I've been pondering. I am replica…
Replicating graphHow can I replicate this graph if I have similar data to what is presented in it? Array …
Regression with Indicator Function splitting Independent Variable into 2 SubgroupsHi All, I'm working on trying to get the results from the following regression which is a formula u…
Subscribe to:
Post Comments (Atom)
0 Response to melogit with crossed (non nested!) factors does not work
Post a Comment