choose.test {robustrank}R Documentation

Make Recommendations on the Most Powerful Test to Use

Description

Performs simulations to compare the power of different tests

Usage

choose.test(Xpaired, Ypaired, Xextra = NULL, Yextra = NULL, mc.rep = 1000)

Arguments

Xpaired

Xpaired

Ypaired

Ypaired

Xextra

Xextra

Yextra

Yextra

mc.rep

mc.rep

Examples



# There are unpaired observations from both samples
dat=sim.partially.matched(m=20,n.x=40,n.y=5,distr="normal",
    params=c(loc.2=.8,rho=.1,scale.2=1),seed=1)
choose.test(dat$X, dat$Y, dat$Xprime, dat$Yprime)

## There are unpaired observations from only one sample
#dat=sim.partially.matched(m=20,n.x=0,n.y=10,distr="normal",
#    params=c(loc.2=.5,rho=.8,scale.2=1),seed=1)
#choose.test(dat$X, dat$Y, dat$Xprime, dat$Yprime)



[Package robustrank version 2024.1-28 Index]