I need to append new cases to a master dataset from a using dataset with two conditions
My master dataset contains 248 observations (children aged 5 to 17 years) from 111 families (variable: num_ea)
From my using dataset, I want to append observations for children aged <5 years AND from the same families (so matching on the variable num_ea)
I have read all the help for append and joinby, but I have been unsuccessful with all commands thus far. I'll be grateful for guidance! Thank you
My master dataset contains 248 observations (children aged 5 to 17 years) from 111 families (variable: num_ea)
From my using dataset, I want to append observations for children aged <5 years AND from the same families (so matching on the variable num_ea)
I have read all the help for append and joinby, but I have been unsuccessful with all commands thus far. I'll be grateful for guidance! Thank you

This is why I asked for example datasets so that we could address any ambiguities. What let me to think that merging was more appropriate was the explicit mention to match on family id (and I was speaking generally about how merging can be accomplished in Stata, not suggesting that all of them were equally valid).
Comment