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: -svmat- error examples


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

Sorry - I forgot to include these examples with my last message:

Al Feiveson


. matrix colnames M = "A_1"  "B_2" "C_3" "D 4"

. matrix list M

M[2,4]
    A_1  B_2  C_3  D 4
r1    1    2    3    4
r2    5    6    7    8

. clear

. svmat M,names(col)
number of observations will be reset to 2
Press any key to continue, or Break to abort
obs was 0, now 2

. list

     +---------------------+
     | A_1   B_2   C_3   D |
     |---------------------|
  1. |   1     2     3   4 |
  2. |   5     6     7   8 |
     +---------------------+


. matrix colnames M = "A_1"  "B_2" "C 3" "D_4"

. matrix list M

M[2,4]
    A_1  B_2  C 3  D_4
r1    1    2    3    4
r2    5    6    7    8

. clear

. svmat M,names(col)
invalid syntax
r(198);

*
*   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