Learn R Programming

sporm (version 1.1.1)

ks.stat: KS statistic for proportional odds rate model

Description

Kolmogorov-Smirnov type test statistic for the goodness-of-fit test of the proportional odds rate model

Usage

ks.stat(x, y)

Arguments

x,y

Vectors containing the data values of the two samples \(x_1,\ldots,x_m\) and \(y_1,\ldots,y_n\).

Value

ks

KS statistic for proportional odds rate model

theta

estimated proportionality parameter \(\theta\) by mrle.sporm

%% ...

Details

See the reference below.

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.sporm

Examples

Run this code
# NOT RUN {
# Use radar tube life data
z<-RadarTube$Days
v<-RadarTube$Type
x<-z[v==1]; y<-z[v==2]
ks.stat(x,y)
# }

Run the code above in your browser using DataLab