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
Logit in 2 stepsHi, I want to model the following. In the internationalization of the firm, it can decide to enter…
a variable that indicates whether it is the first week of the month, second week, etc...Dear all, I have a date variable in my dataset in the following format: 27feb2015 20feb2015 13feb2…
Calculating the sample size needed for population proportion estimationDear users, I am new to Stata, and my question is: what is the correct procedure for calculating the…
"Random Effect model and FGLS" "Fixed effect model and FGLS"Hi Experts Hope you are doing well! Details of my dataset: Unbalanced Panel Dataset Data were tak…
Oceania Stata Conference 2022 - Call for speakersOceania Stata Conference 2022 Exploring the stories in your data with Stata Using Stata’s powerful…
Subscribe to:
Post Comments (Atom)
0 Response to Simple merge question
Post a Comment