I have two column variables j8 and j9 and they complement each other. j8 is asking if they plan and j9 says, if they didn't, did their spouse. For the purposes of my study, it doesn't matter if they or spouse planned. In other words, if j8=yes and j9=1. So how do I combine them as they are related? I want to keep yes (j8) and 1 (j9) and j9 still needs to destring. See attached for more clarification. Have been struggling on this trivia piece. I don't want to accidentally remove respondents if I did something wrong. Thank you so much! Array
Related Posts with Consolidating two column variables
Difference-in-difference modelDear friends, if there is some literature about two-period DID model. If a policy was implemented fo…
Selecting variables based on the value of another variableHello, I have a wide dataset which contains the birth year of various persons as well as the GDP f…
IPTW ATE and binary outcomeDear all I'm performing an IPTW on Stata 14 comparing effect of a drug on a dicotomic outcome (death…
Variable testsHi Should we perform tests for the same variable but with different specifications? example lnGDP, …
Help with constructing time allocation variableHi, hope you are well. I needed some help with a particular dataset I am using for a study. My resea…
Subscribe to:
Post Comments (Atom)
0 Response to Consolidating two column variables
Post a Comment