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
Tried several variations...need help with graphing a predicted probabilities plot with twoway scatter plot and splinedHi Statalist, I cannot figure out how to do this... the attached graph is exactly what we want, but …
Combining two panel databasesDear Stata team, I was wondering if anyone could help me with the following: I have a panel databas…
Trying to run a predicted probabilities plot with a twoway scatterplot with a splineI accidentally created two threads of the same thing …
Missing variables using reshape wide commandHi, This is the command I'm using- reshape wide day_piece, i(farm) j(day_sales) string And this is…
Coefficient interpretation from a GLM regression family(gamma) link(log)Hi all, I am trying to explain some coefficients from a GLM regression with family(gamma) link(log)…
Subscribe to:
Post Comments (Atom)
0 Response to Change a numerical variable with string input into label value
Post a Comment