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
Counting Distinct Observations: number of new investments of specific VCs in an industry 5 years prior to the focal observationDear All, I am using Stata 15.0 I need to calculate how often a VC firm X (variable name: FirmName…
Group categorical variables into a groupHello, for my Master thesis I am at the step of preparing the data to run a multinomial logit model…
sort using twoway line vs. twoway scatter, connected(L)Hi everyone, This may have a very simple solution that I'm missing, but I've gotten stuck. Basical…
Storing one regression coefficient out of many others in "reghdfe"I have a fixed effects regression with many controls. Code: reghdfe pm p_diff l1.pm dd ddXpay rnd…
Comparing regression coefficients across groups in presence of fixed effectsHey I have some company data and i run a panel regression with firm fixed effects. I have a list of …
Subscribe to:
Post Comments (Atom)
0 Response to Variable with negative values
Post a Comment