Learn R Programming

cocotest (version 1.0.3)

coco2: Type 2 Rank correlation coefficient based test on positive dependence through stochastic ordering

Description

This function evaluates the assumption of positive dependence through stochastic ordering in multiple comparison procedures

Usage

coco2(cordx, cordy, alpha = 0.05, Rboot = 100, seed = 1)

Value

a vector of three numbers: a lower bound of one-sided confidence interval lower_bound, a test statistic estimation, and an indicator whether the PDS condition holds or not PDS_assumption

Arguments

cordx

a numeric vector

cordy

a numeric vector

alpha

a number of significance level

Rboot

a number of bootstrap replicates

seed

a number of the seed of random number generator

Author

Jiangtao Gou

Fengqing Zhang

Details

R package boot is included for computing nonparametric bootstrap confidence intervals

References

Gou, J., Wu, K. and Chen, O. Y. (2024). Rank correlation coefficient based tests on positive dependence through stochastic ordering with application in cancer studies, Technical Report. Gou, J. (2023). On dependence assumption in p-value based multiple test procedures. Journal of Biopharmaceutical Statistics, 33(5), 596-610. Gou, J. (2024). A test of the dependence assumptions for the Simes-test-based multiple test procedures. Statistics in Biopharmaceutical Research, 16(1), 1-7.

Examples

Run this code
set.seed(123)
cordx <- rnorm(40)
cordy <- rnorm(40)
coco2(cordx, cordy)

Run the code above in your browser using DataLab