Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: -svmat- error examples


From   "Feiveson, Alan H. (JSC-SK311)" <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index