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
Using a Difference-in-Difference approach with a logit modelI am trying to run a simple DID model with a binary dependent variable, i.e. a logit model. Is this …
Merging datasets togetherI am currently in a tricky situation. I have a dataset with 83,311 observations and 109 variables. I…
Fixed Effects at individual-area-level?Hello folks! I have read this paper today: http://ftp.iza.org/dp9311.pdf If you scroll to page 11,…
How to test heteroskedasticity with xtpmg command. ThanksDear all, I used xtpmg command to estimate three of following: PMG (Pooled Mean Group) MG (Mean Gro…
Instrumental Variables: nonlinear endogenous variable Hello Statalist! I'm doing an exercise from Microeconometrics Using Stata, by Cameron and Trivedi, …
Subscribe to:
Post Comments (Atom)
0 Response to Change a numerical variable with string input into label value
Post a Comment