I've got a bunch of similar datasets, all of which I've fit to linear
models. I'd like to easily create arrays of a specific parameter from each
linear model (e.g., all of the intercepts in one array). I figured I'd put
the model objects into an array, and then (somehow) I could easily create
Hi Andrew,
try
fitted(lms.ASP[1,1][[1]])
Cheers
Andrew
On Wed, May 04, 2011 at 01:49:45PM +0200, Andrew D. Steen wrote:
I've got a bunch of similar datasets, all of which I've fit to linear
models. I'd like to easily create arrays of a specific parameter from each
linear model (e.g., all
It looks like your call:
lms.ASP[1,1] - list(surf105.lm.ASP)
makes a list of length 1 containing the lm object and puts that list
into element [1,1] of your array. That is why you will need the extra
indexing call of [[1]] Andrew Robinson suggested.
On Wed, May 4, 2011 at 9:02 AM, Andrew
On May 4, 2011, at 4:49 AM, Andrew D. Steen wrote:
I've got a bunch of similar datasets, all of which I've fit to linear
models. I'd like to easily create arrays of a specific parameter
from each
linear model (e.g., all of the intercepts in one array). I figured
I'd put
the model objects
Thanks all, this is very helpful.
--Andrew Steen
-Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: Wednesday, May 04, 2011 4:35 PM
To: Andrew D. Steen
Cc: r-help@r-project.org
Subject: Re: [R] what happens when I store linear models in an array
5 matches
Mail list logo