Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: error messages in -svmat-


From   "Feiveson, Alan H. (JSC-SK311)" <alan.h.feiveson@nasa.gov>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: error messages in -svmat-
Date   Wed, 22 Jun 2011 12:10:22 -0500

If one attempts to use _svmat- with the -names(col)- option, the error message "invalid syntax" will usually come up if a column name is not a legitimate variable name. This message is unhelpful. In this situation, I suggest the error message should be changed to something like "the name(s) for some column(s) are not a legitimate variable names", or even better, list the columns with illegitimate names. 

Still better would be an automatic modification to a legitimate variable name as when reading in headers off a non-Stata file. This actually happens in one case only - when the last column (no other one) contains a space in what would otherwise be a legitimate variable name string.

Al Feiveson



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index