I have a list of covariates " v* " all of which need to included in IRT models. In some of the data sets I am using v* contains over 2,000 variables, so I need to divide v* into smaller groups of ~100 variables per group. Given the amount of data I'm working with, "keep" and "drop" are not practical options if they involve naming specific variables in v* or even variable ranges with specific starting and ending variables. I tried the code below from http://www.stata.com/support/faqs/da...ts-of-dataset/ but got a "Group not found" r 111 error.
preserve forval i = 1/7 { keep if group == `i' save group`i' restore, preserve }
Thanks in advance for any help, and apologies in advance for bringing up a topic I know must have been covered many times here. I could not find the right search term to yield the thread that would help.
Bryan
preserve forval i = 1/7 { keep if group == `i' save group`i' restore, preserve }
Thanks in advance for any help, and apologies in advance for bringing up a topic I know must have been covered many times here. I could not find the right search term to yield the thread that would help.
Bryan
Comment