Hello, i'm sure my problem is very basic, but I couldn't find an answer in past topics.
An example of what I want to do is
gen x=.
replace x=0 if y=("Married", "Engaged")
The thing is that variable y is a numeric variable with a certain label related to each number, but I want to work with the labels.
I can't work with the numeric values because for some observations if it says "Married" the value of y=1 and for other its y=3
Thanks!
José
Related Posts with Labels
Decomposition of percentage changesHi everyone, I am trying to implement a decomposition method used by Quigley and Raphael in their 2…
Regression of a continuous variable on three binary endogenous variables and other covariatesI wish to run a regression of wages on three distinct training choices. These training choices are b…
New to STATA and could use some helpThis is our second class and our professor has thrown this at us without ever using STATA before, …
Engle-Granger 2-step ECMHi everyone! I need your advice for Engle-Graner 2-step procedure in Stata. Suppose that the model …
GraphingHello Statalist-ers, I have a dataset below that I would like to graph - can someone please give me…
Subscribe to:
Post Comments (Atom)
0 Response to Labels
Post a Comment