Dear R community,

I am not experienced in writing functions and need your help to understand
the strategy to face the following problem:

I have a group of independent numerical variables, let's say

a<-c(1,3,2,6,9,2,2,3,4,1)
b<-c(2,3,3,4,5,6,2,1,1,6)
c<-c(0,2,4,4,7,6,7,1,2,2)
d<-c(0,0,0,1,0,2,1,3,1,2)
e<-c(9,2,3,1,1,1,0,2,5,6)

and a grouping variable,

group<-c("case","case","case",","case",","case","control","control","control","control","control")

I want to apply a test for every variable independently and store the
summary result in a table

for example

mod1<-aov(a~group)
mod2<-aov(b~group)
.
.
.
 generate summary table


Any suggestions?

Thank you

Fabio



-- 
Fabio Sánchez, MD, MSc, PhD
Unit of Dermatology and Venereology
Department of Medicine
Karolinska Institute
SE-17176 Karolinska University Hospital
Phone: +46 8 51772158
Fax: +46 8 51773620

	[[alternative HTML version deleted]]

