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]
Re: st: putmata and getmata
From
Scott Merryman <[email protected]>
To
[email protected]
Subject
Re: st: putmata and getmata
Date
Thu, 2 Aug 2012 19:48:19 -0500
Are you trying to use -putmata- while in -mata-?
Iit seems to fine for me:
. clear*
. sysuse auto
(1978 Automobile Data)
. putmata *
(12 vectors posted)
. mata: mata desc
# bytes type name and extent
-------------------------------------------------------------------------------
592 real colvector displacement[74]
592 real colvector foreign[74]
592 real colvector gear_ratio[74]
592 real colvector headroom[74]
592 real colvector length[74]
1,463 string colvector make[74]
592 real colvector mpg[74]
592 real colvector price[74]
592 real colvector rep78[74]
592 real colvector trunk[74]
592 real colvector turn[74]
592 real colvector weight[74]
-------------------------------------------------------------------------------
Scott
On Thu, Aug 2, 2012 at 3:21 PM, tashi lama <[email protected]> wrote:
>
> Hello all,
> I am experimenting with mata in an interactive mode. Could someone briefly touch on the following things?
>
> 1. I have an autodata in my stata memory. When I write
>
> :putmata * =>invalid expression when clearly the documentation says creates a vector for all the variables in the memory.
>
> 2. It appears mata can only load either a numeric variable with st_data function or a string variable with st_sdata at one time. Which means it really bars you from getting a full picture of a dataset.
>
> Thanx...
> *
> * 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/
*
* 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/