[R] how to...
casot at libero.it
casot at libero.it
Fri Mar 16 16:55:54 CET 2007
for example:
I have got these data, organized in a dataframe.
sample1 sample2 sample3 sample4 group
replicate1 1.00 0.02 0.35 0.50 A
replicate2 1.00 0.02 1.54 1.11 A
replicate3 1.00 0.02 1.54 1.11 A
replicate4 1.00 0.02 1.54 1.11 A
replicate5 1.00 0.10 0.18 0.72 B
replicate6 1000.00 0.75 0.86 7.26 B
replicate7 1000.00 0.75 0.18 0.36 B
replicate8 1000.00 0.75 12.09 0.74 B
replicate9 1000.00 0.75 12.09 0.84 C
replicate10 1000.00 0.98 0.65 0.50 C
replicate11 2.00 6.00 6.00 2.00 C
replicate12 6.00 6.00 2.00 6.00 C
the first four columns represent the diffent sample I have to test with ANOVA.the last column is related to the group of each entry. Using "aov()" I can run a test on each column. but I would like to run the ANOVAs for each colum (that in my case are hundreds) in an automated way. I can't set up a working script with the "loop" in this case, surely because of my scarce knowledge in programming. can you help me?
the next problem is how to collect the results in a simple way. for example having them organized in a table such as
SAMPLE ANOVA
sample1 ok
sample2 ok
sample3 not significant
....
thank you so much
---------- Initial Header -----------
>From : "Petr Pikal" petr.pikal at precheza.cz
To : "casot at libero.it" casot at libero.it,"R Help" R-help at stat.math.ethz.ch
Cc :
Date : Thu, 15 Mar 2007 20:38:25 +0100
Subject : Re: [R] how to...
> Hi
>
> I suppose you will not get usefull response for such poorly specified
> question.
>
> For automating procedures on data frames you can either do looping or
> use lapply or maybe do.call can also provide some functionality.
>
> If you elaborate what you did and in what respect it was
> unsatisfactory maybe you will get better answer.
>
> Anyway, before your next post you shall look to posting guide.
>
> Regards
> Petr
>
>
>
> On 15 Mar 2007 at 17:20, casot at libero.it wrote:
>
> Date sent: Thu, 15 Mar 2007 17:20:57 +0100
> From: "casot at libero.it" <casot at libero.it>
> To: "R Help" <R-help at stat.math.ethz.ch>
> Subject: [R] how to...
>
> > I have to perform ANOVA's on many different data organized in a
> > dataframe. I can run an ANOVA for each sample, but I've got hundreds
> > of data and I would like to avoid manually carrying out each test. in
> > addition, I would like to have the results organized in a simple way,
> > for example in a table, wich could be easy to export. thank you for
> > assistance
> >
> > simone
> >
> >
> > ------------------------------------------------------
> > Leggi GRATIS le tue mail con il telefonino i-mode di Wind
> > http://i-mode.wind.it
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch 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.
>
> Petr Pikal
> petr.pikal at precheza.cz
>
> ---------- Initial Header -----------
>From : "Petr Pikal" petr.pikal at precheza.cz
To : "casot at libero.it" casot at libero.it,"R Help" R-help at stat.math.ethz.ch
Cc :
Date : Thu, 15 Mar 2007 20:38:25 +0100
Subject : Re: [R] how to...
> Hi
>
> I suppose you will not get usefull response for such poorly specified
> question.
>
> For automating procedures on data frames you can either do looping or
> use lapply or maybe do.call can also provide some functionality.
>
> If you elaborate what you did and in what respect it was
> unsatisfactory maybe you will get better answer.
>
> Anyway, before your next post you shall look to posting guide.
>
> Regards
> Petr
>
>
>
> On 15 Mar 2007 at 17:20, casot at libero.it wrote:
>
> Date sent: Thu, 15 Mar 2007 17:20:57 +0100
> From: "casot at libero.it" <casot at libero.it>
> To: "R Help" <R-help at stat.math.ethz.ch>
> Subject: [R] how to...
>
> > I have to perform ANOVA's on many different data organized in a
> > dataframe. I can run an ANOVA for each sample, but I've got hundreds
> > of data and I would like to avoid manually carrying out each test. in
> > addition, I would like to have the results organized in a simple way,
> > for example in a table, wich could be easy to export. thank you for
> > assistance
> >
> > simone
> >
> >
> > ------------------------------------------------------
> > Leggi GRATIS le tue mail con il telefonino i-mode di Wind
> > http://i-mode.wind.it
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch 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.
>
> Petr Pikal
> petr.pikal at precheza.cz
>
>
------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://infostrada.it
More information about the R-help
mailing list