Hi, I wonder, has anybody tried to visualize multinomial/ordinal with maginsplot, similarly as the one here (slide 24): https://www.ucl.ac.uk/population-hea.../files/lca.pdf but it works for binary manifest variables. I have categorical (ordinal with dif scales).
What I have tried is smth like this (thanks Chuck Huber for your assistance with those commands):
gsem (cuts police inequality global PARTY <- _cons), family(multinomial) link(logit) lclass(C 2)
estat lcprob
estat lcmean
margins, predict(outcome(1.cuts) class(1)) ///
predict(outcome(1.police) class(1)) ///
predict(outcome(1.inequality) class(1)) ///
predict(outcome(1.global) class(1)) ///
predict(outcome(2.PARTY) class(1))
marginsplot, recast(bar) xtitle("") ytitle("") ///
xlabel(1 "Cuts" 2 "Police" 3 "Inequality" 4 "Global" 5 "PARTY") ///
title("Predicted Probability of Behaviors For Class 1 with 95% CI")
… but it assumes specifying value for each DV. Given that in my case it would makes sense to treat my DVs as ordinal, I would prefer a version which is based on means (centered or standardized would also go) where I have all DV/manifest variable means across classes on one figure (like this one made by tidyLPA: https://rdrr.io/cran/tidyLPA/man/plot_profiles.html
Any ideas?
Thankfully,
Related Posts with Marginsplot after multinomial LCA
Growth model - No convergenceI would like to develop a latent growth model (LGM) with Stata. The point is to illustrate estimated…
Wild bootstrap Fixed and Random effects model.Dear Statalist, The topic of my thesis is "How firm specific characteristics affect a firm's Cash ho…
When I do K-Wallis test, it divides one of my factorial categorical variable into 2 (picture attached) What could possibly be the reason?In this picture I have 4 different groups of cocaine use (IV, ingestion, nasal, smoke). Why smoke (s…
Query on Appending two datasets.Hi everyone, Im trying to append two datasets of different versions together. The variable names ac…
Gen date variable with missing valuesHi, i want to loop to convert my strings data date starting by "d" into date format. But I have vari…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot after multinomial LCA
Post a Comment