-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of Philipp Kunze
Sent: Wednesday, September 08, 2010 5:35 AM
To: R-help@r-project.org
Subject: [R] Regression using mapply?
Hi,
I have huge matrices in which the response variable
Hi Philipp,
I like to use something like
lapply(2:10, function(j) lm.fit(cbind(1, DataMatrix[,j]), DataMatrix[,1]))
for this sort of thing. I'd be curious to know if there are other
approaches that are better.
--Gray
On Wed, Sep 8, 2010 at 4:34 AM, Philipp Kunze pku...@gwdg.de wrote:
Hi,
Hi,
I have huge matrices in which the response variable is in the first
column and the regressors are in the other columns. What I wanted to do
now is something like this:
#this is just to get an example-matrix
DataMatrix - rep(1,1000);
Disturbance - rnorm(900);
DataMatrix[101:1000] -
On Sep 8, 2010, at 7:34 AM, Philipp Kunze wrote:
Hi,
I have huge matrices in which the response variable is in the first
column and the regressors are in the other columns. What I wanted to
do
now is something like this:
#this is just to get an example-matrix
DataMatrix - rep(1,1000);
4 matches
Mail list logo