Learn R Programming

Trendtwosub (version 0.0.2)

simu.ustat.pattern: simu.ustat.pattern function

Description

This function create two independent subsamples of various subsample sizes, with a given probability vector.

Usage

simu.ustat.pattern(mean.prob.vec, effn.subs, n.rep = 10^2)

Arguments

mean.prob.vec

a vector of length 2. Its first element represents the probability that a random observation from one subsample is less than the the one from another subsample..

effn.subs

a vector contains two subsample sizes.

n.rep

the total number of repetition.

Value

simu.tab a list of length n.rep. Each element of the list is a 2 by 2 matrix, showing the comparison results from function multi.freq.

Details

each subsample is generated from a normal distribution, with an average generated from the mean.prob.vec.

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

Run this code
# NOT RUN {
simu.ustat.pattern(c(0.8,0.2),c(5,8),n.rep=100)
# }

Run the code above in your browser using DataLab