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
Bar charts, multiple using both over and byI have trouble making bar charts when attempting to do so using BY three variables (DataEX Code prov…
New verrsions of xdir and descsave on SSCThanks as always to Kit Baum, new versions of the xdir and descsave packages are now available for d…
Crossover mixed model set up + analysis helpHey Everyone, I'm trying to analyse some data I've collected, and am having some trouble with setti…
How many levels possible with -mixed-?Dear all, I have googled quite a bit and looked into the Stata manual, but couldn't really find an …
Wide table using esttabHi all, I am trying to get a Latex wide table with scalars values from a 2x2 table with chi square …
Subscribe to:
Post Comments (Atom)
0 Response to Issue with summing and averaging different columns/variables
Post a Comment