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" <>
To   <>
Subject   st: RE: string variable to matrix
Date   Mon, 21 Jul 2003 18:10:21 +0100

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


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index