Hello Statalisters,
I have multiple datasets I am trying to organize/merge/append them -- basically "put them together". Let's say there are 100 cases total, and 40 variables, and one is a matching ID variable. I have ten small datasets, each with a subset of variables and participants. I have a master file with MOST participants and MOST variables. How can I "insert" each of these smaller datasets into the larger one -- I want to both overwrite some of the current missings for existing participants in the master file with the smaller datasets, but each time also I want to add a couple of variables and add a couple of participants, too.
I've looked at merge, append, joinby, and cross, but I can't seem to figure out how to get the write-over function to work.
Thank you much, in advance!
Jeanne
I have multiple datasets I am trying to organize/merge/append them -- basically "put them together". Let's say there are 100 cases total, and 40 variables, and one is a matching ID variable. I have ten small datasets, each with a subset of variables and participants. I have a master file with MOST participants and MOST variables. How can I "insert" each of these smaller datasets into the larger one -- I want to both overwrite some of the current missings for existing participants in the master file with the smaller datasets, but each time also I want to add a couple of variables and add a couple of participants, too.
I've looked at merge, append, joinby, and cross, but I can't seem to figure out how to get the write-over function to work.
Thank you much, in advance!
Jeanne
Comment