Hello experts,
I have been facing a challenge in producing an output that is based on average scores based on a particular category of a list of variables that explain one domain. For example,
there are n1, n2, and n3 domains each is comes with a particular list of variables and each variable in n1, n2, n3 domains is with three categories: 1=Yes, 0=No, and 99= Don't know.
n1
variable n1_1: 'var label':
No --> 20%
Yes --> 60%
Dont know --> 20%
variable n1_2: 'var lable': No --> 10%
Yes --> 70%
Dont know --> 20%
.
.
.
______
n2
variable n2_1: 'var label': No --> 20%
Yes --> 60%
Dont know --> 20%
variable n2_2: 'var lable': No --> 10%
Yes --> 70%
Dont know --> 20%
.
.
.
The required variable or output is an average percentage based on all variables of n1, n2, and n3 (separately) and the result should be based only on 'Yes' category responses.
How is this possible in Stata?
Many thanks in advance!
Nadeem
Related Posts with Generating a variable that is gives average score based on 'yes' responses on a bunch of variables
Finding an Applicable Econometric Model to use in StataHey everyone! I am looking for an econometric model for my research. I will be using the CPS Conti…
regress, unbiased standard errors?Hello, I would like to know if the command regress corrects for n-k to get the unbiased standard err…
weighted kappa 95%CI helpWhen calculating 95%CIs: how do I dictate that my data are 8x8 when some ratings have not been used …
Different n, R² and RMSE: Choosing between A) means in dataset / B) dataset of meansHello, this might be easily answered: Which of the following options must I choose for a "correct" b…
Type of GMM Estimator With ivreg2 Dear members, In our research, we use the stata command “ivreg2” with year and country dummies in …
Subscribe to:
Post Comments (Atom)
0 Response to Generating a variable that is gives average score based on 'yes' responses on a bunch of variables
Post a Comment