Dear Statalists,
I have a survey data that contains categorical variables in the Likert scale (typically 5 categories between strongly agree- strongly disagree). I would like to calculate a kind of average weighted scores by assigning values for each response categories, then, dividing it by a total number of observations. The values assigned as follows:
Category The value that will be assigned
1 - Strongly disagree -2
2 – Disagree -1
3 – Neither disagree nor agree 0
4 – Agree +1
5 – Disagree +2
Now I want to calculate an average weighted score for each variable like this:
Average weighted score = (All Strongly disagrees * -2) +(All Disagrees * -1)+ (All NDNAs * 0)+ (All Agrees * +1)+ (All Strongly agrees * +2) / Total number of frequency
I could not figure out how to do that easily in Stata.
I will be grateful for any help and advice.
Best regards,
Savas
Related Posts with average weighted scores
Estimating Productivity adnI am trying to find impact of (Dividends) on (Firm Sales) controlling for the firm characteristics i…
Creating a new variable by Household IDI have a dataset where everybody has household ID and each respondent has a given economic status: "…
Adjusting survival Kaplan CurveCheers, Here is sample code. Code: webuse cancer,clear set obs 48 generate weight = runiform() s…
Estimating Productivity from Cobb Douglas and Variables Significance changeI am trying to find impact of (Dividends) on (Firm Sales) controlling for the firm characteristics i…
Problem in running a loop - does not stopDear all, I am currently trying to write a code to estimate the abnormal cash flow for my dataset w…
Subscribe to:
Post Comments (Atom)
0 Response to average weighted scores
Post a Comment