Subset of Data for Simulation
Posted: Thu Feb 25, 2016 7:15 pm
I'm running a simulation study, and I have created my datasets in SAS. I have a total of 1,000 datasets, which I combined into one file that I imported into MLwiN. This file has a field that identifies the data set, numbered from 1 to 1,000, and my plan was to use this field to create a subset of the full data set, then run each data set individually in a loop and summarize across all 1,000 datasets.
However, I'm having trouble creating a subset. I thought that the CHOOse command would work, but I can't seem to keep all variables for each data set. Is there another way to do this, apart from importing each data set individually?
However, I'm having trouble creating a subset. I thought that the CHOOse command would work, but I can't seem to keep all variables for each data set. Is there another way to do this, apart from importing each data set individually?