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
Distance between observations in different data basesHi, I have two data bases (1 & 2). I can compare longitude and latitude between them but nothing…
Generating Variables Acc. to Multiple Conditions And Earliest OccurrenceI am working with a dataset that contains names, the frequency of a name according to gender, and th…
Why the variables'name from esttab presentation is different from that of presented table by using esttabMy code is as below
Code:
reghdfe wNET_PRO_MAR pt , a(TYPE2 yr)
est sto m1
reghdfe wNET_PRO_MAR …
Changing variable value across cross-sectional units in panel data if criteria is metI have panel data in which my cross-sectional units are farms. I am correcting a variable for the ye…
Combining bar graphs from different binary variablesDear all,
I'm trying to get a combined bar chart for an overview of the proportions from three diff…
Subscribe to:
Post Comments (Atom)
0 Response to Consolidating two column variables
Post a Comment