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
Euclidean distance matrixHi all, I have 271 unique forum IDs and need to calculate the Euclidean distance between each forum…
Coding variables to make the database lighterHi, I'm working with a big database (15 million of observations, 2 gb) and I would like to make it a…
Is there something like r-squared for exponential models?I'm working on a survival model. And I would like to compare different models in how good they are a…
'Slow' completion of GMM programHi everyone, I have a question about the GMM command, namely why it takes so long to complete. I ha…
PSMatch2 and esttab tables.Dear statalists, I am currently working on a psmatch2 and I want to create professional-looking tab…
Subscribe to:
Post Comments (Atom)
0 Response to Creating new variable from other variables
Post a Comment