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
Christophe Kolodziejczyk <firstname.lastname@example.org>
Re: st: transpose question
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
2011/7/23 John Luke Gallup <email@example.com>:
> 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
> 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. :)
>>> 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.
>>> 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?
>> * 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: