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
dynamic probit fixed effects model using "probitfe" r(3900)Hi all, I am working with large dynamic binary panel data with i=53856 and t=11 (total obs. 592416)…
Which test to use in Stata? Relationship Wage Gender EducationHello, a very naive and at the same time simple question: For a project in statistics where we wan…
Proportion test for multiple groupsHi, I want to compare how does use of drug "A" differs across age categories. Total drug A users w…
Applying HCUP software on NIS data through STATAHello everyone, I'm using NIS data for research, which is a dataset that uses ICD-10 codes to genera…
calculate the number of sharemy data looks like this and I want to calculate how many times did each bank lead in the year for e…
Subscribe to:
Post Comments (Atom)
0 Response to Variable with negative values
Post a Comment