Displaying 1 result from an estimated 1 matches for "surf105".
2011 May 04
2
what happens when I store linear models in an array?
...and then (somehow) I could easily create
corresponding arrays of intercepts or residuals or whatever, but I can't the
parameters back out.
Right now I've stored the model objects in a 2-D array:
> lms.ASP <- array(list(), c(3,4))
Then I fill the array element-by-element:
> surf105.lm. ASP <- lm(ASP ~ time)
> lms.ASP[1,1] <- list(surf105.lm.ASP)
Something is successfully being stored in the array:
> test <- lms.tx.ASP[1,1]
> test
[[1]]
Call:
lm(formula = ASP ~ time)
Coefficients:
(Intercept) elapsed.time..hr
0.430732 0.004073...