I wanted to change the contents in a variable. The variable, termed "outcome" contains integer numbers ranging from 1-9. I want to replace all the number 1's with the name "Outcome1". What code would I use to do this?
Related Posts with Changing the contents in a variable
dummy variable conditional not working for all panel IDsDear Stata users, I have a panel data set consisting of municipalities in my country from 2000-2020…
Graphing by year?Good afternoon everyone, I am fairly new to stata and am struggling with the graphing aspect. Namel…
Reshape long with multiple variablesHello, I have wide-structured data for answers on a 4 item scale at 2 time points. Please see data d…
Approximating trend in time-seriesHello! I am trying to come up with a metric to capture the temporal pattern of the average of numer…
Rolling regression with pooled time series data; plotting 10 year windows with 95% CIHi everyone, I basically want to replicate figure four in Pontusson and Kwon (2010) with different …
Subscribe to:
Post Comments (Atom)
0 Response to Changing the contents in a variable
Post a Comment