I thought this would be easy, but it's proving the opposite.
I am trying to generate a new variable that is the sum of several other variables. What I found is that this should be easy:
Gen newvar = v1 + v2 + ....
However, it's not working for me. Initially, I thought it was because my v1 - v3 weren't clean (had some mistyped letters and whatnot in there), so I cleaned them. So, now they are entirely numeric.
Nonethtless:
gen total_drinks_week = how_many_wine_clean + how_many_beer_clean + how_many_liquor_clean
type mismatch r(109);
IDEAS?
Ziggy