Learn R Programming

sporm (version 1.1.1)

phi: Function phi(t)

Description

A function can be used to calculate the approximate probability masses \(p_1,\ldots,p_N\) of the discretized baseline distribution \(F\).

Usage

phi(N, theta, lambda)

Arguments

N

integer N=m+n, the sum of the two smple sizes

theta

the value of the proportionality parameter \(\theta\)

lambda

m/N

Details

Returns approximation of probability masses \(p\)= phi(N, theta, lambda)/N of the discretized baseline distribution \(F\).

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

mrle.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]
# Dabrowska-Doksum's estimate of theta
theta0.hat<-dd.est(x,y)
m<-length(x)
n<-length(y)
N<-m+n
lambda<-m/N
phat0<-phi(N, theta0.hat, lambda)/N
# }

Run the code above in your browser using DataLab