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
xtlogit errorwhen i use xtlogit, i encounter error error: 4,585 (group size) take 1,738 (# positives) combinatio…
How to create graphs from svy weighted data?I svy set my data and tabulated svy weighted values - I am trying to create simple bar graphs from t…
Propensity Score MatchingThis though is not software related, at least not yet, however, I would like to know conditions for …
Panel regressionHello, I am working with panel data where T=23 and N= 22 (country). I performed the following steps…
Postestimation tests with xtsurDear Statalist, I am trying to estimate a regression with Panel data SUR method with the command xt…
Subscribe to:
Post Comments (Atom)
0 Response to Creating new variable from other variables
Post a Comment