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

st: RE: string variable to matrix


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: string variable to matrix
Date   Mon, 21 Jul 2003 18:10:21 +0100

HJW
>
> The official Stata command -mkmat var1, mat(mymat)- puts values of a
> numeric variable into a matrix called mymat. I am wondering
> whether there is a similar command that would put contents of a
> *string* variable into a matrix.
>
> I thought the query has been raised before, but I couldn't recover
> the information either by searching the Statalist archive or using
> -findit string variable to matrix-.

No. Stata's matrices contain numbers only.

You can use -tabdisp- to show string variables
for particular row and column combinations.

Nick
[email protected]

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