simu.ustat.pattern {Trendtwosub}R Documentation

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.

Details

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

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.

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

simu.ustat.pattern(c(0.8,0.2),c(5,8),n.rep=100)

[Package Trendtwosub version 0.0.2 Index]