Hi,
I'm fairly new to Stata so I apologize if my question is basic. I am essentially trying to create a new variable by getting a weighted average of 20 variables (the syntax might eventually look like var1*a1+var*2+a2....var20*a20/(a1+a2+...a20). When I do this, it says that there are no observations.
I then tried to confirm that I was even able to add the variables a1, a2... but when I add them all it still says no observations. Why might this be the case?
The variable in question is a Likert-type survey question and there are 5 different levels (1,2,3,4,5).
Thank you,
Related Posts with Issue with summing and averaging different columns/variables
Counting Upwind and Nonupwind firesHi, I have data on the cluster locations. with lat & log information and data on the fire locati…
Stata 17- Percentages of the total sumHello Everyone, I have a list of individuals and their incomes. I have divided them into 5 quintiles…
Creating missing value mechanismsHi, I would have a full dataset with an outcome variable y and a two predictors x1 and x2 and 100 o…
Creating missing value mechanismsHi, I would have a full dataset with an outcome variable y and a two predictors x1 and x2 and 100 o…
Preparing data for competing risksHi everyone I have four variables: Event 1 (1: yes, 0: no), time to event 1 (years); event 2 (1: yes…
Subscribe to:
Post Comments (Atom)
0 Response to Issue with summing and averaging different columns/variables
Post a Comment