GoF4USO: A TestUSO Function

Description Usage Arguments Value Examples

Description

This function allows you to test against USO based on X and Y via the sample-based-critical-value approach

Usage

1
GoF4USO(X, Y, alpha = 0.05, graph = FALSE, L = 1000, B = 1000)

Arguments

X

a vector of the sample of size m from the distribution F

Y

a vector of the sample of size n from the distribution G

alpha

significance level. Default is 0.05

graph

plot or not. Default is FALSE

L

number of Monte Carolo samples to compute sample-based critical values. Default is 1000

B

number of bootstrapped samples. Default is 1000

Value

Test statistics, critical values, and conclusion; i.e, reject (if 1) or do not reject (if 0)

Examples

1
2
X=rnorm(30,0,1);Y=rnorm(40,1,1);
GoF4USO(X,Y,alpha=0.05,graph=TRUE,L=1000,B=1000)

Harrindy/TestUSO documentation built on June 3, 2019, 1:11 a.m.