Hi, I have a list of fit objects (fit objects from HMISC functions)

I create elements in the list in this way

lrm.sumtot <- lrm( ae7bepn ~ trarm  + sumtot  , data=sd.fix)

lrm.list[['lrm.sumtot']] <- lrm.sumtot 

And I can run (anova(lrm.sumtot))

The following also gives the anova I'd expect
 zz <- lrm.list[['lrm.sumtot']];anova(zz)


And similarly for the summary command 

I would prefer not to create a second list with "anova" objects nor a
third list with "summary" objects.

Is there a way to use an sapply or lapply to  prepare anova or summary
for every element in my list of fit objects? 


Thank you in advance 

    Chris Barker, Ph.D.
  Statistical Consultant
   650 384 8617


        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to