Bookmark and Share

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


From   richard boylan <[email protected]>
To   [email protected]
Subject   Re: st: list x matrix
Date   Sun, 28 Mar 2010 10:48:31 -0500

I don't understand this point.

I saw the documentation for predictnl, and I can see how xb is an
option after running an estimation.

However, I did not understand how I could use it to compute xb without
an estimation.

On Sun, Mar 28, 2010 at 8:40 AM, Maarten buis <[email protected]> wrote:
> --- 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/
>

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index