Hey,
I'm stuck on a simple thing and would really need some help. I have a non-numeric variable ranging from -5 to +5. I want to make it into only positive values so that -5 represents 1 and -4 represents 2 etc. Does anyone know how to do this easily? I suppose I first encode it but when I have done so and then recoded the variables to positive ones i only get values between 6 to 10 even though I recoded -5 to 1.
/Johan
Related Posts with Variable with negative values
Superscript and subscriptDear Stata users, I have a variable with both superscript and subscript. When I wrote both superscr…
Comparison of predicted values after OLS regressionDear all, I am interested in predicted values after an OLS regression. Moreover, I am curious how t…
'No observations' errorDear all, I'm trying to conduct a unit root test to my variables using the following code: Code: …
Complex survey settingsHi, I am trying to set-up a complex survey data set in Stata and Mplus so that they have the same s…
wbopendata Multiple IndicatorsHi All, I am currently trying to download multiple indicators onto STATA from wbopendata, Currently…
Subscribe to:
Post Comments (Atom)
0 Response to Variable with negative values
Post a Comment