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
gsem in stataHow can I use gsem when I have dependent binary variables? Using the example in the manual: Code: …
Help with replace and egenHi everyone, I have the dataset below. How can i replace the S3_Q10K with value in S1C_Q0_*? For ex…
Replace Blanks within a StringHi All, I have a pretty large dataset where one of the columns has over 1200 unique observations. Ea…
which variable to take as reference category?Hi all, I'm doing a research about the relationship between risk tolerance and demographic factors …
How to merge CRSP daily with CRSP/Compustat Merged Annually data?Hello, I would like to ask how to merge CRSP Daily data with CRSP/Compustat Merged Annually data? I…
Subscribe to:
Post Comments (Atom)
0 Response to To construct a composite variable from multiple categorical variables
Post a Comment