Dear Stata Forum,
I am estimating an SEM model with two latent variables as such:
My goal is to accurately put respondents into the category of the categorical variable with the highest predicted probability, given the value of observed continuous variable. For example, given the SAT score of a college applicant, I want to be able to predict which college major they would be in (hypothetical example). I know how to find the predicted probabilities after gsem.
My question is: How do I find predicted probabilities manually after this model? I need to build a spreadsheet tool where someone can plug in the observations of continuous variables and get the predicted category.
Any insight is greatly appreciated,
Much thanks.
I am estimating an SEM model with two latent variables as such:
Code:
gsem (Latent1 Latent2, ) /// (Latent2 -> Some_Categorical_Var, family(ordinal) link(logit) /// (Some_Continuous_Var -> Latent1, ), difficult latent(Latent1 Latent2) nocapslatent
My question is: How do I find predicted probabilities manually after this model? I need to build a spreadsheet tool where someone can plug in the observations of continuous variables and get the predicted category.
Any insight is greatly appreciated,
Much thanks.
Comment