Hi everyone,
I want to reverse a mean scale score, which is a non-integer variable from 1 to 5. I tried using revv, as it says it handles non-integer variables. I tried so by specifying the valid() option, but I did not know how to specify the option to reverse the non-integer variable... For example, I typed revv varlist, valid(1/5) which only reverse coded the integer numbers 1, 2, 3, 4 and 5 but not the non-integer values in-between (e.g. 1.2, 1.3 etc).
Can anyone help me out with this and knows how to specify the valid() option so that my non-integer variable gets reversed completely?
Thank you so much!!
Related Posts with reversing non-integer variables using revv
Generating a variable to count repetitions of observations based on group and time -rangestat-Dear Statalists, I am using Stata/MP 16.1 to analyze a large dataset (200,000 obs.) of investor lea…
Expressing all other variables in deviation from the cross-section mean of 'year' variableHello everyone, I am a STATA novice and still getting to grips with the software. I am running a l…
Diff in Diff by Hand and StataHi everyone, I'm an undergrad and trying to understand what Stata does when I run a diff-in-diff co…
Removing duplicatesHi Statalist, I have this variable: Code: * Example generated by -dataex-. To install: ssc instal…
test of endogeneityHow to find which variable is endogenous before finding an instrument for it (before 2sls test)? …
Subscribe to:
Post Comments (Atom)
0 Response to reversing non-integer variables using revv
Post a Comment