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
Generating Binary Variable using Local MacrosI have a panel dataset involving a bunch of different countries. I am looking to construct a local m…
Financial statement comparability (rangerun after rangestat?Dear All, In an earlier post (https://www.statalist.org/forums/for...fter-rangestat), I asked how to…
Graph Descriptive statistics.Hi Stata Users , I'm looking at the relationship between health outcomes of mother(Bmi. and hemoglo…
propensity score matching using pscore command..can someone help to understand the matching ways.. my problem is when i do stratification matching (…
Princiapl component analysisHello Nick Sir... need some help on pca to form an index... the commands are somehwat like this.. gl…
Subscribe to:
Post Comments (Atom)
0 Response to Change a numerical variable with string input into label value
Post a Comment