Dear All,
I am currently working with a survey dataset to conduct a multilevel logistic regression analysis. The command I am using is -meqrlogit- in Stata 14.1. Due to the problem of nonresponse, the data is treated with multiple imputation procedures (MICE, m=10). As a result, the number of post-estimation options I have, when using -mi estimate-, is somewhat reduced. In particular, I am struggling to find a way to rank and visualise my results in a standard error bar graph (serrbar) given I cannot seem to calculate the linear unbiased predictions or standard errors of random effects in my null model.
The conventional way, without using multiple imputation, appears to use the -predict- command with -reffects- or -reses- options included. For instance:
When using -mi predict- or -mi predictnl- however, this command does not work and I cannot seem to compute either -reffects- or -reses-. The typical message is that such options cannot be calcuated. Now, this may simply be a syntatic error on my part, or some statistical convention far beyond my comprehension.
However, I wondered whether or not there was another way of calculating the equivalent -reffects- or -reses- in Stata?
Apologies for any inconvenience (and the somewhat long-winded and convoluted explanation)
Kind Regards,
Patrick
I am currently working with a survey dataset to conduct a multilevel logistic regression analysis. The command I am using is -meqrlogit- in Stata 14.1. Due to the problem of nonresponse, the data is treated with multiple imputation procedures (MICE, m=10). As a result, the number of post-estimation options I have, when using -mi estimate-, is somewhat reduced. In particular, I am struggling to find a way to rank and visualise my results in a standard error bar graph (serrbar) given I cannot seem to calculate the linear unbiased predictions or standard errors of random effects in my null model.
The conventional way, without using multiple imputation, appears to use the -predict- command with -reffects- or -reses- options included. For instance:
Code:
meqrlogit mviolence || country: ,mle var
predict u0, reffects
predict u0se, reses
sort u0
gen country=sum(pickone)
gsort -pickone -country
list cntry u0 u0se country if pickone==1
capture drop u0 u0se country pickone
serrbar u0 u0se country if pickone==1, scale(1.96) yline(0) mvopts(mlabel(cntry))
//Produce a Caterpillar Plot//
//label define cat1//
tab cntry
label define country1 1 "Ukraine" 2 "Bulgaria" 3 "Georgia" 4 "Russia" 5 "Lithuania" 6 "Czech Republic" ///
7 "Hungary" 8 "Slovakia" 9 "Portugal" 10 "Croatia" 11 "Ireland" 12 "Estonia" 13 "France" 14 "Cyprus" ///
15 "Poland" 16 "Germany" 17 "Great Britain" 18 "Slovenia" 19 "Israel" 20 "Spain" 21 "Belgium" ///
22 "Netherlands" 23 "Switzerland" 24 "Sweden" 25 "Norway" 26 "Denmark" 27 "Finland"
label values country country1
serrbar u0 u0se country if pickone==1, scale(1.96) yline(0) ytitle("Predicted Random Intercept") ///
xtitle("Country") xlabel(1 (1) 27, valuelabel labsize(2) angle(vertical) g)
However, I wondered whether or not there was another way of calculating the equivalent -reffects- or -reses- in Stata?
Apologies for any inconvenience (and the somewhat long-winded and convoluted explanation)
Kind Regards,
Patrick

Comment