Hello;
I am trying to merge some variables to create a new variable.
To expand, I am trying to create a dummy variable about child care, where 0=non-regulated childcare and 1=regulated child care. The problem is that one variable lists the child care used, and others determine whether that child care is regulated or not.
How do I create a variable that uses values from the three variables I am looking at? See photos for example.
(nonrelativecare is related to value 1, 2 & 6 for variable ACRCD01 and relativecare is related to value 3,4,5 for ACRCD01)
Related Posts with Creating new variable from other variables
Gravity model, low R2-withinHi all ! I'm running a bilateral trade panel data of 42 reporter with 186 partner for the year 2015…
p-value for comparison of adjusted curves from RocregHello, I am trying to compare two curves generated using rocreg - one curve that is not adjusted and…
Is there no way to include "industry fixed effects" in an FE regression?Dear Stata community, I am running a model of the following form: xtset CompanyID Year, yearly xtr…
Drop base variables from fvexpand listI want to modify the variable list produced by fvexpand, e.g. Code: . webuse nhanes2f, clear . f…
Clarification of Results InterpretationI am conducting a cross-sectional study of UK firms to investigate the relationship between boardroo…
Subscribe to:
Post Comments (Atom)
0 Response to Creating new variable from other variables
Post a Comment