Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: _regress (stata9)


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: _regress (stata9)
Date   Fri, 15 Feb 2008 17:43:47 -0500

"R.E. De Hoyos" <[email protected]>:
Also see
help mf_cross

On Feb 15, 2008 5:18 PM, Zurab Sajaia <[email protected]> wrote:
> Hi Rafa,
>
> try -matrix accum- (and related commands)
>
> Zurab
>
>
> ----- Original Message -----
> From: "R.E. De Hoyos" <[email protected]>
> To: <[email protected]>
>
> Sent: Friday, February 15, 2008 5:14 PM
> Subject: Re: st: _regress (stata9)
>
>
> > Nick, Statalisters,
> >
> > Define X as a NxK matrix (N=observations and K=independent variables). I
> > simply want to get X'X, where N is a very large number and K is relatively
> > small. N exceeds the maximum dimension for a matrix, so I am looping to
> > compute X'X and it takes ages.
> >
> > So, since this is the formula for the OLS beta=(X'X)^-1(X'Y), and
> > "regress" is really fast I thought there must be an alternative way of
> > computing X'X in a more efficient way.
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index