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
Instrumental variable analysis with multiple imputationHello all, I will please like to find out if IV analysis works with imputed data (i.e using multipl…
Drop variables based on nameHi, I have a dataset with 100 variables, 50 of which are called Xi_ante and 50 of which are called X…
Stata dropping interacting Time Period Covariates. Can't figure out why.Good Morning. I am trying to run a simple descriptive regression on a year-district (1964-2002, ~40…
Get name of specific variable which name is equal to another value of a variableI have a study where I am to look 28 days back in time before an event to see if the patients were w…
Logit & conformability error in inteff I am using a survey data to run a logit regression, and currently I am testing the interactions of …
Subscribe to:
Post Comments (Atom)
0 Response to Variable with negative values
Post a Comment