I wrote a function to perform hypothesis testing. I will call it here myMethod.test
. This function basically takes two samples x and y and returns a p value for my null hypothesis. I thus write a function :
myMethod.test<-function(x,y)
{.....}
I would like also to support expression as it is the case for base core test function e.g. t.test or wilcox.test in which you can write (measurement
and group
being two columns of data):
t.test(data,measurement~group)
I would like to find existing functions coded in pure R and supporting such call to adapt it to my case (or any other hints).