| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | 1) Creating Tables in Splus 2) Looping |
| From: | "angela g." <angelaeic@hotmail.com> |
| Date: | Mon, 20 Oct 2003 13:01:00 -0400 |
2) I am looping through a datamatrix performing a test on each column and I want Splus to report the results of the test each iteration. This is what I did (mydata is a 100x15 matrix)
> for(i in 3:dim(mydata)[2]) { # for columns 3 through 15 + tmp <- aov(mydata[, i] ~ factor(group), na.action = ""> + summary(tmp) } But Splus returns no results at all. When I type summary(tmp) on the command line after executing the above statements, it spits out the correct result (ie. the test result for the last column in my dataset). So, this loop seems to be doing what I want it to do. However I would like Splus to report the intermediate results before overwriting it with the next test. If anyone has some ideas, please email me. Thanks!
See when your friends are online with MSN Messenger 6.0. Download it now FREE! |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Identifying Points on subplot, J Roy Robertson |
|---|---|
| Next by Date: | Re: 1) Creating Tables in Splus 2) Looping, Spencer Graves |
| Previous by Thread: | Identifying Points on subplot, J Roy Robertson |
| Next by Thread: | Re: 1) Creating Tables in Splus 2) Looping, Spencer Graves |
| Indexes: | [Date] [Thread] [Top] [All Lists] |