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: list x matrix


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   re: st: list x matrix
Date   Sun, 28 Mar 2010 06:40:06 -0700 (PDT)

--- On Sun, 28/3/10, Kit Baum wrote:
> Easily done in Mata, per Bill Gould's latest Mata Matters
> column in Stata Journal:
> 
> sysuse auto, clear
> putmata x=(price mpg  turn), replace
> mata:
> z = x * (11 \ 22 \ 33) 
> end
> getmata z

If we take Richard's question literaly, then this if probably
the best answer. However, I would argue that the fast 
majority of users should *not* use it, this includes users who
program in Stata. This is because Stata has a great many tools
available that will do that computation for you. I previously
pointed to predictions (-predictnl-, but also -predict- itself)
Inside the various programs you can use for maximizing likelihoods 
there are a number of tools who do that computation for you, and
I presume that the same is true for the tools available to 
estimate models using generalized methods of moments.
 
-- Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

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