I have datasets for 12 countries containing a multitude of variables e.g. age, sex, tobacco use, alcohol use, diabetes, and HBP. The issue is that certain variables are missing for some countries, which means I have to clean the datasets one by one to keep the necessary variables to be finally able to append them. So I am wondering if there is and special command for appending that will only retain the variables (for each of the subsequent append) that match those on the master dataset, lets say for keeping only Age, sex and HBP.
Thanks in advance for your insights!
Related Posts with Appending several datasets for selected variables in the master dataset
Create a Variable in stata that is a value minus it's last month valueHi all, I put some data below, but I have a question about making a varialbe that is it's value min…
Unexpected behavior of the egen function median()Hello all, This is my first post but I've read up on the FAQ so I hope it will be acceptable. To gi…
Generate difference variable between 2 digits sectors and relevant 3 digits sub-sectors of NACE Rev.2Dear all, I have a data set consisting of Inflation rates relating to 2-,and 3- digit sectors of Na…
Response surface analysis (RSA)Hi! Does STATA support RSA analysis and the surface plotting? …
Screeplot of eigenvalues from the reduced correlation matrixI assume that STATA's screeplot command prints the eigenvalues from the sample correlation matrix. H…
Subscribe to:
Post Comments (Atom)
0 Response to Appending several datasets for selected variables in the master dataset
Post a Comment