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
System GMM across subsamplesHello everyone, I am using the -xtabond2- command. I am using 70 countries over a period of 14 years…
Multiple Imputation analysis error (2000)Dear Statalisters, Thank-you for reading my query. I am working with a very big dataset (52 variab…
Why using an interaction term inversly changes the results (p-value) for the interacted variable?I am use a probit model, and use 2 interaction terms in my regression. There seems to be a problem, …
Potential bug in IVREGRESS: instruments dropped due to collinearity when they should not be droppedIn a private conversation, haiyan lin notified me of a potential bug in ivreg2. The same problem occ…
Monte Carlo SimulationDear All, I hope I will find someone who could help me with my question. I am having problems with …
Subscribe to:
Post Comments (Atom)
0 Response to Simple merge question
Post a Comment