Another option:
lapply(ls(patt="^m[0-9]"), function(model)summary(get(model)))
On 22/02/2008, Christoph Scherber
<[EMAIL PROTECTED]> wrote:
> Dear R users,
>
> Let´s say I have 10 models, each named m1,m2,m3..., and I would like to
> summarize them automatically
> and simultaneously - e.g., t
> Let´s say I have 10 models, each named m1,m2,m3..., and I would like
> to summarize them automatically
> and simultaneously - e.g., to extract parameter estimates later on
> from all models; how can I do that?
>
> I have tried:
>
> x=1:10 #this creates some example data
> y=rnorm(10)
>
> m1
lto:[EMAIL PROTECTED] Namens Christoph Scherber
Verzonden: vrijdag 22 februari 2008 12:46
Aan: [EMAIL PROTECTED]
Onderwerp: [R] Simultaneously summarizing many models
Dear R users,
Let´s say I have 10 models, each named m1,m2,m3..., and I would like to
summarize them automatically
and simultaneou
Dear R users,
Let´s say I have 10 models, each named m1,m2,m3..., and I would like to
summarize them automatically
and simultaneously - e.g., to extract parameter estimates later on from all
models; how can I do that?
I have tried:
x=1:10 #this creates some example data
y=rnorm(10)
m1=lm(x~
4 matches
Mail list logo