Re: [R] : automated levene test and other tests for variable datasets

2015-04-15 Thread Joachim Audenaert
-project.org Date: 14/04/2015 18:17 Subject:Re: [R] : automated levene test and other tests for variable datasets You ask quite a lot of questions, I have given some hints about your first example inline On 14/04/2015 09:07, Joachim Audenaert wrote: > Hello all, > > I am writing

Re: [R] : automated levene test and other tests for variable datasets

2015-04-15 Thread Joachim Audenaert
elt.be | W: www.pcsierteelt.be From: Thierry Onkelinx To: Joachim Audenaert Cc: "r-help@r-project.org" Date: 15/04/2015 13:31 Subject: Re: [R] : automated levene test and other tests for variable datasets Dear Joachim, Storing your data in a long form

Re: [R] : automated levene test and other tests for variable datasets

2015-04-15 Thread Thierry Onkelinx
Dear Joachim, Storing your data in a long format will make this a lot easier. library(reshape2) long.data <- melt(dataset, measure.var = c("A", "B", "C", "D", "E")) library(car) leveneTest(value ~ variable, data = long.data) library(plyr) ddply(long.data, "variable", function(x){ks.test(x$value}

Re: [R] : automated levene test and other tests for variable datasets

2015-04-14 Thread Michael Dewey
You ask quite a lot of questions, I have given some hints about your first example inline On 14/04/2015 09:07, Joachim Audenaert wrote: Hello all, I am writing a script for statistical comparison of means. I'm doing many field trials with plants, where we have to compare the efficacy of differ

Re: [R] : automated levene test and other tests for variable datasets

2015-04-14 Thread Bert Gunter
Sounds like you need to do some of your own "homework"... In particular, you need to learn how to write your own functions in R to carry out such tasks. There are many good tutorials on how to program in R, e.g. the Intro to R that ships with R and many others that can be found by searching. Choos

[R] : automated levene test and other tests for variable datasets

2015-04-14 Thread Joachim Audenaert
Hello all, I am writing a script for statistical comparison of means. I'm doing many field trials with plants, where we have to compare the efficacy of different treatments on, different groups of plants. Therefore I would like to automate this script so it can be used for different datasets of