script for creating combined dataset with all variables