Hey there, I have a variable called "ad_tone" that has three values, negative, positive, and attack. When I tab this variable with no label, it shows 1, 2, and 3. However, in my dataset for each observation, the record for this variable is still "negative", "positive" and "attack". My question is how to change the input into the numerical value (to change the "attack" to "3").Thanks very much!
Array
Related Posts with Change a numerical variable with string input into label value
ITSA lincom command to estimate the difference in outcome after a training periodHi I would be grateful for your help. I have run a ITSA using Lindens ITSA command for a survival …
Drop empty variables when importing spss into stataI have an spss dataset that has ~27000 variables, but only ~500 include any values. The rest are bla…
generate variable with _N but with missing values as welI have a problem with my data. This is an example. Code: input float(id wave year income) 101 2009…
why noconst option generate so different results in Nlogit?Dear experts, I used Nlogit to analyse data. First, I did not include noconst in level 2 equation. …
Using pcarrowi dyanmically?Hello everyone, Is there any way to use pcarrowi command dynamically? I'm trying to find a way to i…
Subscribe to:
Post Comments (Atom)
0 Response to Change a numerical variable with string input into label value
Post a Comment