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
teffects with multivalued treatmentsI was just wondering if anyone knows why Stata restricts the use of teffects with multivalued treate…
2SLS F-StatisticsHello, I am trying to apply 2SLS and obtaining a very high value for the First Stage F-Statistics (K…
How to reshape data with dates as variable names?Greetings everyone, I need your help reshaping my district-level daily temperature data from a wide…
Type Mismatch Error with tabcountThe data contain several unique classes "class_id" (byte, values 1-20) with students "student_id" (b…
Matching different ID between two periodsHi! I have a problem that I wonder if anybody can help me with. I have panel data of individuals we…
Subscribe to:
Post Comments (Atom)
0 Response to Issue with summing and averaging different columns/variables
Post a Comment