Hi all,
I've been trying to better understand the covariance structure to select for a multilevel logistic model that includes two random intercepts and a random slope. The data are not repeated measures and the DV is binary. Essentially, the model is:
melogit dv i.iv1 c.iv2 c.iv3 || clustera: || clusterb: iv1
The random slope (iv1) is a binary variable. I'd like to better understand if the best choice is covariance(unstructured) or the default (independent). Reading Rabe-Hesketh & Skrondal as well as some forum posts, it seems that unstructured may be best because of the number of random parameters, but I'm not quite sure. Is it appropriate to run models with both covariance structures and use lrtest to determine which is preferred?
EDIT: Apologies - the title states "random slopes." It should read "random slope"
Related Posts with covariance structure for melogit model with random slopes
IV(2SLS) regression with fixed effects and two-way clusteringHello, I tired IV(2SLS) regression with STATA, but I do not know whether what I do is right or not.…
1000 times simulation with random treatment for different y variables I want to randomly assign treatment and then simulate it for 1000 times for all my y variables. I w…
Dataset: converting blank cells to numerical zeroHere's my data set in a .csv file: ("ins3.csv"): https://www.dropbox.com/s/000rcyo4oo7o4n8/ins3.csv?…
Test of mean differencesWhat is the correct command to use when I want to compare groups that are nested within each other? …
Box Whisker Plot HelpHello: I would like to make a box whisker plot where the y axis is age and the boxes are 2 differen…
Subscribe to:
Post Comments (Atom)
0 Response to covariance structure for melogit model with random slopes
Post a Comment