Categorical predictors in Path Model PreviousNext
Mplus Discussion > Categorical Data Modeling >
Message/Author
 June Zhou posted on Friday, February 10, 2012 - 9:31 am
Dear All,

I am running a path model with a categorical predictor.

There are 12 levels in this categorical predictor.

I am going to compare each level with all other levels.

My question is How to code this categorical model so that I can put them into the path model?

Thank you in advance!
 Linda K. Muthen posted on Friday, February 10, 2012 - 10:08 am
If the categorical variable is ordered, you can treat it as continuous. Otherwise, you need to create 11 dummy variables to represent the 12 categories. You would use these dummy variables as covariates. You can create them using the DEFINE command.
 June Zhou posted on Friday, February 10, 2012 - 10:20 am
Thank you very much for your prompt reply, Dr. Muthen!

The categorical variable is not ordered.

My understanding is that if I coded a level by 1 and others 0, and make it 11 dummy variables, what I am doing is to compare this level with the 12th level (reference group). Is coding method the same if I'd like to compare each level with all other levels?

Thank you in advance!
 Linda K. Muthen posted on Friday, February 10, 2012 - 11:37 am
There are various types of coding. You should see a regression text where this topic would be discusssed.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: