Thank you David and Thierry, your answers helped a lot!
Kind regards,
RK.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/postin
or 1.0536478 0.1712595 6.152348 1.41e-07
> virginica 0.6314052 0.1428938 4.418702 5.647610e-05
>
> David C
>
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of David L
> Carlson
> Sent: Monday, February 16, 2015 8:52 AM
&
inica 0.6314052 0.1428938 4.418702 5.647610e-05
David C
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of David L Carlson
Sent: Monday, February 16, 2015 8:52 AM
To: Ronald Kölpin; r-help@r-project.org
Subject: Re: [R] Loop over regression results
In R y
In R you would want to combine the results into a list. This could be done when
you create the regressions or afterwards. To repeat your example using a list:
data(iris)
taxon <- levels(iris$Species)
mod <- lapply(taxon, function (x) lm(Sepal.Width ~ Petal.Width,
data=iris, subset=Specie
4 matches
Mail list logo