Dear Statalisters,
Consider this simple program:
program define myprog
syntax varlist
_rmcoll `varlist'
local varlist r(varlist)
tokenize `varlist'
...
do things
...
end
The simple idea is to take the varlist input, remove any collinear
variables, replace the initial varlist with the noncollinear varlist, and
then tokenize the noncollinear varlist to proceed with the things to be
done. This works fine, so long as I don't have a lot of variables in
varlist. If I do, then r(varlist) gets cut off at 244 characters. Is
there a way to do what I want when the varlist is long?
Thanks,
Matt Dobra
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/