Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: using _rmcoll


From   Matthew L Dobra <[email protected]>
To   [email protected]
Subject   st: using _rmcoll
Date   Thu, 8 Jan 2004 13:14:48 -0500 (EST)

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index