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 & for variable ACRCD01) and (relativecare is related to value 3 for ACRCD01)
Related Posts with Creating new variable from other variables
Graph box over sex, side by side boxesHi folks, Apologies if this question is simple but I was trying to find a good solution. I want to…
two notes when using twoway graph, by()Hi all, I'm making a graph (see below) that uses the twoway graph by() option. As you can see, beca…
Updated combomarginsplotGreetings, An updated combomarginsplot is now available on SSC (thanks Kit Baum!). This version has…
comparing the effect and magnitude of two coefficients across two modelsHello everyone, I have a panel dataset with 500 banks (in 20 countries) over the period 2000-2015. …
How to sum up (frequency and percentage) by group?Hello, I have a dataset like below. What I want to do is to group based on icd_code (first 3 digit…
Subscribe to:
Post Comments (Atom)
0 Response to Creating new variable from other variables
Post a Comment