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
Margins : marginal effects for all observationsHello, I'm currently running into some issue with margins. I'm estimating 2 models, a fractional …
Panel Data- Working with the ID`sHello, Statalisters I am working with an Unbalanced Panel Data with information about sales, capita…
Ordered Logit model: discontinuous region with missing values encountered when estimating MEDear Statalist, I am using Stata 15.1 and want to estimate the marginal effects of an ordered logit…
Testing for a known break date in a time series with yearly dataI have a data set that contains variables for economic growth (called "dgdp") and the change of unem…
Rename the list of variables with the name of each sheet*Hi, I am importing 3 sheets from excel and I want to rename the list of variables with the name of e…
Subscribe to:
Post Comments (Atom)
0 Response to To construct a composite variable from multiple categorical variables
Post a Comment