[R] automating aov function

About this list Date view Thread view Subject view Author view Attachment view

From: Joshi, Nina (NIH/NCI) (joshini@mail.nih.gov)
Date: Thu 27 May 2004 - 21:43:30 EST


Message-id: <27C204BD76CBC142BA1AE46D62A8548E0D806568@nihexchange9.nih.gov>


 

I am running the aov function to determine the linear relationship between
individual genes and a number of covariates in a micro-array data set. My
aov function is working, but I have not been able to write a code to save
these results in a matrix. I am using the following code or a slight
variation of this code:

 

for(i in 1(length(m[1,])-20)

 

{tmp<- aov(m[,i]~treat, data=m)

 

{results [i] <- tmp}}

 

Any help would be appreciated.

 

 

Thanks,

 

Nina

 

 

Nina Joshi, PhD

NIH/NCI/ Genetics Branch

National Naval Medical Center, Bldg. 8, Rm. 5101

8901 Wisconsin Ave.

Bethesda, MD. 20889-5101

(301) 435-5436 - phone

(301) 496-0047 - fax

 

 

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST