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 at the end of May, 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   Christophe Kolodziejczyk <ck.statalist@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: transpose question
Date   Sat, 23 Jul 2011 11:27:16 +0200

I would also recommend to read carefully the introduction and work out
the examples, especially hose related to getting data from Stata in
Mata to start with. Then I would read also carefully m4_stata with an
emphasis on functions st_data(), st_view(), st_addvar() and st_store.
There is also a good introduction on Mata on Stata's website and a
very good introduction, and a very good explanation of st_view()
functions, by William Gould which you can download (type findit
matatalk at the prompt of Stata). You can also read the different
introductions to mata by Kit Baum, where you will learn  on Mata and a
few tricks.
Christophe



2011/7/23 John Luke Gallup <jlgallup@pdx.edu>:
> 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/
>

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