print.mmcm.resamp {mmcm} | R Documentation |
This function print result of function mmcm.resamp
(resampling based P-value, maximum contrast and related statistics)
## S3 method for class 'mmcm.resamp': print(x, ...)
x |
Object of class mmcm.resamp , which is result of
function mmcm.resamp .
|
... |
Other parameters used in the function. |
observed statistics |
observed value of the modified maximum contrast statistics (T'_max). |
contrast |
suffix of coefficient vector and coefficient vector of kth pattern that gives the maximum contrast statistics (colmun number of coefficient matrix). |
P-value |
P-value of the modified maximum contrast statistics, which is simulated by using a resampling based procedure. |
The case where printed "more than 2 contrast vectors was selected ...",
some contrast may be unsuitable.
Author: Kengo NAGASHIMA and Yasunori SATO
Maintainer: Kengo NAGASHIMA nagasima@josai.ac.jp
## Example 1 ## # true response pattern: dominant c_3=(1, 1, -2) set.seed(326584) x <- c( rlnorm(130, meanlog = 0.91, sdlog = 0.1), rlnorm( 90, meanlog = 0.91, sdlog = 0.1), rlnorm( 10, meanlog = 0.85, sdlog = 0.25) ) g <- rep(1:3, c(130, 90, 10)) contrast <- cbind( c(-1, 0, 1), c(-2, 1, 1), c(-1, -1, 2) ) y <- mmcm.resamp(x, g, contrast, 10000) print(y) # print function y # = method for "mmcm.resamp" class