Hi there,
I tried to use dataex but the following error emerged: "data width (406 chars) exceeds max linesize. Try specifying fewer variables".
So, I created the below example which I know isn't ideal but hopefully you can get an idea. There are 4 variables with 16 participant scores, each score with a range of 1-5.
motor v36 v37 v38
1
2
5
4
3
4
1
2
4
1
3
1
5
3
4
5
The 4 variables above (motor v36 v37 v38) all deal with the one variable (motor ability) but due to the nature of the questionnaire was separated by age by SurveyMonkey. Specifically, "motor" is the results for those aged under 4, "v36" is the result for those aged between 4 and 6, "v37" is the results for those aged between 6 and 12 and "v38" is the results for those aged between 12 and 18.
There is only 1 score per participant row so can I simply merge these 4 variables into the one variable please? I don't need them to be separated by age as SurveyMoney had done. I tried to use matchit but it did not work because I have too many variables. Might there be a way to recode all 4 variables into one other variable please?
Many thanks for your help and time.
Related Posts with Merging 4 variables into 1 on Stata?
too many variables, tabulateHi there, I have some troubles with the command tabulate. My Goal is to create a table in Stata, ju…
Adding too many variables to a regression modelAm I correct in thinking adding too many variables to a regression model can increase the likelihood…
Conditioning on wide variablesHello, I created a wide dataset where 'm201509' to 'm201512' are binary variables indicating that t…
Reshape long then wide: use variable labels as new variable's (j) values, and with missing valuesHi All, I'm trying to reshape a dataset, and I'm having two problems that I can't solve. What I'm …
How to interpret PCA outcome variables?Hi all, I have a question with regards to principal component analysis. On the basis of pca, I crea…
Subscribe to:
Post Comments (Atom)
0 Response to Merging 4 variables into 1 on Stata?
Post a Comment