Indeed. In fact StataCorp might also
add "numeric" just in case users try
to cross-correlate string variables,
so that they are informed properly
of their error; this isn't Allan's
problem, but it might be somebody
else's.
Nick
[email protected]
Allan Reese
> Further to the discussion on counting the number of
> variables in a list,
> here's a small request. I recently used xcorr (cross
> correlations of time
> series) and throughtlessly typed a string of variables. The program
> returned correlations for just the first two. It may be
> that there are
> many ado files that would benefit from a minor editing to
> add parameter
> checking, in this case to add (min=2 max=2).
> Alternatively, xcorr could
> be extended to take more variables and loop to find all pairs.
*
* 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/