ks.sporm: KS test for the semiparametric proportional odds rate model

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/ks.sporm.R

Description

Goodness-of-fit test of Kolmogorov-Smirnov type for the semiparametric proportional odds rate model

Usage

1
ks.sporm(x, y, B = 1000)

Arguments

x, y

Vectors containing the data values of the two samples x1,...,xm and y1,...,yn.

B

The number of Monte Carlo trials for simulation approach.

Details

Using the Monte Carlo simulation method to approximate the p-vakue of the KS test statistic which is distribution-free and is calculate by internal function ks.stat.

Value

ks

The Kolmogorov-Smirnov type test statistic.

pval

The p-value of the KS test.

Author(s)

Zhong Guan <zguan@iusb.edu>

References

Zhong Guan and Cheng Peng (2011), "A rank-based empirical likelihood approach to two-sample proportional odds model and its goodness-of-fit", Journal of Nonparametric Statistics, to appear.

See Also

ks.stat, mrle.sporm.

Examples

1
2
3
4
5
6
# Radar tube life data
z<-RadarTube$Days
v<-RadarTube$Type
x<-z[v==1]; y<-z[v==2]
## K-S goodness-of-fit test
ks.sporm(x,y,  B=100)

sporm documentation built on Jan. 27, 2021, 5:08 p.m.