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
asdoc + xtdidregress not workingHi Statalists! I wonder if someone else have a problem using asdoc together with the new xtdidregre…
Problem with implementing forward and backward linkages on stataHello, I am currently doing a research on FDI spillovers, at this point i need some help with imple…
Count unique observations by grouping vars if conditions is metHi I want to count the number of unique ID's per year and group. I have managed that with the follo…
How to draw 1:2 matched dataset then double the cases?Hello Statalists, Part of my data is as follows: Code: * Example generated by -dataex-. For more i…
Problem to create loopGoodmorning I have a panel data, with severall variables for each countriesin every years. However I…
Subscribe to:
Post Comments (Atom)
0 Response to Variable with negative values
Post a Comment