Description Usage Arguments Examples
Performs simulations to compare the power of different tests
1 | choose.test(Xpaired, Ypaired, Xextra = NULL, Yextra = NULL, mc.rep = 1000)
|
Xpaired |
|
Ypaired |
|
Xextra |
|
Yextra |
|
mc.rep |
1 2 3 4 5 6 7 8 9 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.