pow.ana.gen.decision {Trendtwosub} | R Documentation |
pow.ana.gen.decision function
Description
This function evaluates the type I error of the proposed test.
Usage
pow.ana.gen.decision(mean.prob1, mean.prob2, effn.subsam1, effn.subsam2,
N.rep = 10^1, boot.rep = 10^1, rseed = 1234, alpha.level = 0.05)
Arguments
mean.prob1 |
the probability that observations of a subsample is less than the ones from another subsample, in sample #1. |
mean.prob2 |
the probability that observations of a subsample is less than the ones from another subsample, in sample #2. |
effn.subsam1 |
the subsample sizes from sample 1. |
effn.subsam2 |
the subsample sizes from sample 2. |
N.rep |
the total number of bootstrap repetitions needed for calculating type I errors. |
boot.rep |
the number of repetitions needed to calculated simulated p-value, |
rseed |
a random seed. |
alpha.level |
the type I error level that will be assessed. |
Value
the simulated type I error.
References
Wang, Y., Stapleton, A. E., & Chen, C. (2018). Two-sample nonparametric stochastic order inference with an application in plant physiology. Journal of Statistical Computation and Simulation, 88(14), 2668-2683.
Examples
prob.vec<-c(.4,.2,.3,.6);
sub.sizes1<-c(2,4,3,5,3);sub.sizes2<-c(6,3,2,4,2)
pow.ana.gen.decision(prob.vec,prob.vec,sub.sizes1, sub.sizes1)
pow.ana.gen.decision(prob.vec,prob.vec,sub.sizes1, sub.sizes1,alpha.level=0.1)