Skip to content
Back to formatted view

Raw Message

Message-ID: <ED7B522EE00C9A4FA515AA71724D61EE020C12E4@DC1EXCL01.air.org>
Date: 2009-02-18T14:21:41Z
From: Doran, Harold
Subject: Python and R
In-Reply-To: <9fea1da40902180612yb0d308fo82775cc476a0d66@mail.gmail.com>

> lm(y ~ x-1)
> solve(crossprod(x), t(x))%*%y    # probably this can be done more
> efficiently


You could do

crossprod(x,y) instead of t(x))%*%y