phi: Function phi(t)

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

View source: R/phi.R

Description

A function can be used to calculate the approximate probability masses p1,...,pN of the discretized baseline distribution F.

Usage

1
phi(N, theta, lambda)

Arguments

N

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

theta

the value of the proportionality parameter θ

lambda

m/N

Details

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

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

mrle.sporm.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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

sporm documentation built on May 2, 2019, 8:56 a.m.