My question may be simple. I tried to find a possible answer to my question, but failed to do so.
I am trying to construct a composite variable from multiple categorical variables. I want to get a single value (e.g., mean) from multiple categorical variables.
For instance, I want to estimate the effect of self-directed learning (SDL) on academic achievement. Both are categorical variables. There are five questions that are intended to assess the extent of SDL ability. So I would like to combine the five questions into one variable.
How can I do this in STATA?
egen, concat or egen, group are not what I am looking for because they do not give me a single value(number).
If they are continuous variables, egen, rowmean will work.
Or simply combining multiple categorical variables into a single variable is problematic, isn't it?
Please help me with this.
Related Posts with To construct a composite variable from multiple categorical variables
survival analysis using cure mixture mode (cureregr)hi, i'm trying to run a cure mixture model using cureregr command. as i had never use that model, ca…
Generate dataset w/ averages, upper, and lower variationSay I want to estimate the prevalence of something across multiple weeks, and then also create an "u…
Statistically compare two proportions on multiply imputed dataDear all, I calculated two proprtions based on 50 multiply imputed datasets and received the follow…
Retrieving user-written command while Stata is openHello all, I wrote a program within a .do file and was having some debugging issues, so I moved it …
In etable the label suboption of cstat does not appear to do anything?First of all I just want to say that the etable command is a wonderful addition to Stata.. I'm tryin…
Subscribe to:
Post Comments (Atom)
0 Response to To construct a composite variable from multiple categorical variables
Post a Comment