I used a collapse command to count the number of occurrences linked to particular survey responses:
collapse (count) qn1b if qn1b == 4, by (hhid)
I then saved this as a separate data file (data2) - but I'm having trouble merging it back together with my initial data set (data1) while preserving missing as well as 0 values. I'm new to merging data sets and not sure what I'm doing wrong in the merge.
Related Posts with Simple merge question
This should be quick :)I have a large data set data from the field of education which was coded by grade. The Kindergarten …
converting to census countyfip from the existing variable of US city and state namesHello everyone, I've the following data which is referenced by it's id variable. For each ID, it ha…
multinomial logistic - interpreting the economic effectsHello statalist When I replicate this paper, "Corporate cash shortfalls and financing decisions.", I…
Error merging master data with using data keeping the merge key as city and statefipI need to convert my master data to county level. For that in my master data I have statefip and cit…
spacing between columns in collect tableThere are a couple of questions I have: 1. I want to keep median, IQR together while increasing the…
Subscribe to:
Post Comments (Atom)
0 Response to Simple merge question
Post a Comment