Dear all,
I am running a multilevel random intercept model for a binary outcome (risk: high vs. low) using MCMC algorithm implemeted through "bayes" prefix. After code execution, I tried to use the command "bayespredict" to get the standard error (SE) of the fixed portion linear prediction (just like after running "melogit" model, you can use "predict" to get the prediction of the fixed linear portion and its SE). However, the command "bayespredict" is not compatible with "bayes: melogit". I appreciate any guidance on how to derive SE for the fixed portion linear prediction.
My code is:
bayes, saving(m1.ster, replace) rseed(12345): melogit risk_cat i.age_bi i.gender i.preg_smk_bi || stratum:, or baselevels
Thanks in advance!
Best,
Mengmeng
I am running a multilevel random intercept model for a binary outcome (risk: high vs. low) using MCMC algorithm implemeted through "bayes" prefix. After code execution, I tried to use the command "bayespredict" to get the standard error (SE) of the fixed portion linear prediction (just like after running "melogit" model, you can use "predict" to get the prediction of the fixed linear portion and its SE). However, the command "bayespredict" is not compatible with "bayes: melogit". I appreciate any guidance on how to derive SE for the fixed portion linear prediction.
My code is:
bayes, saving(m1.ster, replace) rseed(12345): melogit risk_cat i.age_bi i.gender i.preg_smk_bi || stratum:, or baselevels
Thanks in advance!
Best,
Mengmeng
Comment