[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: string variable to matrix
> 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: