ojaCsampleTest(X, ...)
## S3 method for class 'default':
ojaCsampleTest(X, Y, mu = NULL, scores = "sign", p = 1,
method = "approximation", n.simu = 1000,
center = "ojaMedian", na.action = na.fail, ...)
## S3 method for class 'formula':
ojaCsampleTest(formula, scores="sign", p = 1,
method = "approximation", n.simu = 1000,
center = "ojaMedian", data, subset, na.action,...)X ~ g where X
is a numeric matrix with at least two columns giving the data values and g a factor
with at least two levels giving the corresponding groups.mu should be 0 or not be specified at all.method = permutationcenterojaSign. Is used to center the data matrix. The default is the natural but computationally expansive
Oja median. For other options see the hojaMedian.
Note that no theoretical results are available when pojaSign, ojaRank, oja1sampleTestdata(biochem)
X <- subset(biochem, group=="Control", select=c("comp.1","comp.2"))
Y <- subset(biochem, group=="Treat", select=c("comp.1","comp.2"))
ojaCsampleTest(X,Y, alg="ex")
ojaCsampleTest(X,Y, method="p", alg="ex")
ojaCsampleTest(cbind(comp.1, comp.2) ~ group, score="r", data=biochem)Run the code above in your browser using DataLab