Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: transpose question


From   John Luke Gallup <jlgallup@pdx.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: transpose question
Date   Fri, 22 Jul 2011 15:05:38 -0700

Dave,

The most relevant part of the documentation for putting Stata data into Mata matrices is in

help m1_ado    (Using Mata with ado-files)
help m4_stata  (Stata interface functions)

That said, I would recommend starting from the beginning!  Read the relatively short and concise (like most Stata documentation - the reason I switched from SAS so many years ago)  introduction to Mata programming at

help m1_intro

John

On Jul 22, 2011, at 10:33 AM, Airey, David C wrote:

> .
> 
> Thank you!
> 
> Where does one start to understand use of Mata for data manipulation in the documentation? Don't say at the beginning. :)
> 
> -Dave
> 
>> Once you work out the syntax to move data into Mata matrices, all the manipulation in Mata is _much_ easier than handling matrices in Stata.
>> 
>> Stata's (and Mata's) matrix cross-product functions in many cases allows you to work with a K x K matrix, avoiding holding a larger K x N matrix.
>> 
>> John
>> 
>> On Jul 21, 2011, at 4:41 PM, Airey, David C wrote:
>> 
>>> .
>>> 
>>> Stata's data tables are limited to 32,767 variables.
>>> 
>>> In Mata, matrices are limited only by the amount of memory on your computer.
>>> 
>>> For very large row column transpose problem, do other users
>>> break the data set into smaller pieces, transpose and then put it back
>>> together in Stata? Or do you somehow use Mata?
>>> 
>>> -Dave
> 
> *
> *   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index