I am working on the Health Information National Trends Survey (HINTS) which has 7 variables measuring the functions of patient-centered communication (output below).
I am looking at creating an overall patient-centered communication score, which is my outcome variable. But I am having a hard time doing this. So far I know I should average scores of the individual variables and then transform them to a 0–100 scale, but I'm not sure how. I am using STATA v. 14.
Thank you in advance.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(chanceaskquestions feelingsaddressed involveddecisions understoodnextsteps explainedclearly spentenoughtime helpuncertainty) 1 1 1 1 1 1 1 -1 -1 -1 -1 -1 -1 -1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 3 3 3 2 2 2 3 1 1 1 1 1 1 1 2 3 2 1 1 2 2 2 2 2 2 2 2 2 4 4 4 3 3 4 4 2 2 3 2 2 2 4 1 2 1 1 1 1 1 2 2 2 3 2 3 2 -1 -1 -1 -1 -1 -1 -1 2 2 1 1 1 2 2 3 4 3 2 2 2 3 -1 -1 -1 -1 -1 -1 -1 2 4 3 2 4 4 3 4 4 1 3 1 4 4 1 3 2 2 2 2 2 3 3 3 3 2 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 1 2 2 2 1 2 2 1 2 2 2 3 4 4 3 3 3 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 2 1 2 2 2 1 2 1 1 2 1 1 1 2 1 1 1 1 1 1 1 1 2 2 1 1 2 2 1 1 1 1 1 1 1 1 2 1 1 1 2 2 1 2 1 1 1 3 2 1 2 1 1 1 1 1 -2 -2 -2 -2 -2 -2 -2 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 1 1 1 1 1 1 1 2 2 1 1 2 3 1 1 1 1 1 1 1 2 2 2 2 2 2 2 1 4 1 1 1 1 1 3 2 3 3 3 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 4 3 3 2 2 4 1 2 1 1 1 2 1 3 3 3 3 3 3 3 1 1 1 1 1 1 1 2 2 2 2 2 2 2 1 1 1 1 1 1 2 2 2 2 2 2 2 3 -9 -9 -9 -9 -9 -9 -9 1 2 2 1 2 2 2 -1 -1 -1 -1 -1 -1 -1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -2 -2 -2 -2 -2 -2 -2 2 2 1 1 1 2 4 1 3 1 1 1 2 2 1 1 2 2 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 3 3 1 1 2 3 2 2 1 1 1 2 2 1 1 1 1 1 1 1 2 2 2 1 2 2 2 1 1 1 1 1 1 1 2 3 3 3 3 4 3 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -1 -1 -1 -1 -1 -1 -1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 2 2 2 2 2 2 2 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 4 2 1 1 1 1 1 1 2 2 2 3 3 3 2 1 2 2 1 1 2 2 end label values chanceaskquestions chanceaskquestions label def chanceaskquestions -9 "Missing data (Not Ascertained)", modify label def chanceaskquestions -2 "Question answered in error (Commission Error)", modify label def chanceaskquestions -1 "Inapplicable, coded 0 in FreqGoProvider", modify label def chanceaskquestions 1 "Always", modify label def chanceaskquestions 2 "Usually", modify label def chanceaskquestions 3 "Sometimes", modify label def chanceaskquestions 4 "Never", modify label values feelingsaddressed feelingsaddressed label def feelingsaddressed -9 "Missing data (Not Ascertained)", modify label def feelingsaddressed -2 "Question answered in error (Commission Error)", modify label def feelingsaddressed -1 "Inapplicable, coded 0 in FreqGoProvider", modify label def feelingsaddressed 1 "Always", modify label def feelingsaddressed 2 "Usually", modify label def feelingsaddressed 3 "Sometimes", modify label def feelingsaddressed 4 "Never", modify label values involveddecisions involveddecisions label def involveddecisions -9 "Missing data (Not Ascertained)", modify label def involveddecisions -2 "Question answered in error (Commission Error)", modify label def involveddecisions -1 "Inapplicable, coded 0 in FreqGoProvider", modify label def involveddecisions 1 "Always", modify label def involveddecisions 2 "Usually", modify label def involveddecisions 3 "Sometimes", modify label def involveddecisions 4 "Never", modify label values understoodnextsteps understoodnextsteps label def understoodnextsteps -9 "Missing data (Not Ascertained)", modify label def understoodnextsteps -2 "Question answered in error (Commission Error)", modify label def understoodnextsteps -1 "Inapplicable, coded 0 in FreqGoProvider", modify label def understoodnextsteps 1 "Always", modify label def understoodnextsteps 2 "Usually", modify label def understoodnextsteps 3 "Sometimes", modify label values explainedclearly explainedclearly label def explainedclearly -9 "Missing data (Not Ascertained)", modify label def explainedclearly -2 "Question answered in error (Commission Error)", modify label def explainedclearly -1 "Inapplicable, coded 0 in FreqGoProvider", modify label def explainedclearly 1 "Always", modify label def explainedclearly 2 "Usually", modify label def explainedclearly 3 "Sometimes", modify label def explainedclearly 4 "Never", modify label values spentenoughtime spentenoughtime label def spentenoughtime -9 "Missing data (Not Ascertained)", modify label def spentenoughtime -2 "Question answered in error (Commission Error)", modify label def spentenoughtime -1 "Inapplicable, coded 0 in FreqGoProvider", modify label def spentenoughtime 1 "Always", modify label def spentenoughtime 2 "Usually", modify label def spentenoughtime 3 "Sometimes", modify label def spentenoughtime 4 "Never", modify label values helpuncertainty helpuncertainty label def helpuncertainty -9 "Missing data (Not Ascertained)", modify label def helpuncertainty -2 "Question answered in error (Commission Error)", modify label def helpuncertainty -1 "Inapplicable, coded 0 in FreqGoProvider", modify label def helpuncertainty 1 "Always", modify label def helpuncertainty 2 "Usually", modify label def helpuncertainty 3 "Sometimes", modify label def helpuncertainty 4 "Never", modify
0 Response to How do i transform categorical variables to continuous scores?
Post a Comment