Learn R Programming

mmcm (version 1.0-1)

print.mmcm.resamp: Print function for mmcm.resamp object

Description

This function print result of function mmcm.resamp (resampling based $P$-value, maximum contrast and related statistics)

Usage

## S3 method for class 'mmcm.resamp':
print(x, ...)

Arguments

x
Object of class mmcm.resamp, which is result of function mmcm.resamp.
...
Other parameters used in the function.

Value

  • observed statisticsobserved value of the modified maximum contrast statistics ($T^{\prime}_{\max}$).
  • contrastsuffix of coefficient vector and coefficient vector of $k$th 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.

See Also

mmcm.resamp

Examples

Run this code
## 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

Run the code above in your browser using DataLab