Learn R Programming

ELYP (version 0.7-1)

CoxFindL2: Find the Wilks Confidence Interval Lower Bound for Efun from the Empirical Likelihood Ratio Function CoxEL

Description

This function uses simple search to find the upper level (default 95%) Wilks confidence limits based on the CoxEL( ) function.

Usage

CoxFindL2(BetaMLE, StepSize, Hfun, Efun, y, d, Z, level=3.84)

Arguments

BetaMLE
a scalar: the NPMLEs: beta1 hat.
StepSize
a vector of length 2. Approx. length of the 2 conf. intervals: beta1, and lambda.
Hfun
a function that defines the baseline feature: mu.
Efun
a function that takes the input of 3 parameter values (beta1 and Mulam) and returns a parameter that we wish to find the confidence Interval Upper Value.
y
the censored survival times.
d
vector of 0, and 1
Z
matrix of covariates
level
confidence level. Using chi-square(df=1), but calibration possible.

Value

  • A list with the following components:
  • Lowerthe lower confidence bound.
  • maxParameterNloglikFinal values of the 3 parameters, and the log likelihood.

Details

Basically we repeatedly testing the value of the parameter, until we find those which the -2 log likelihood value is equal to 3.84 (or other level, if set differently).

References

Zhou, M. (2002). Computing censored empirical likelihood ratio by EM algorithm. JCGS

Examples

Run this code
## Here Mulam is the value of int g(t) d H(t) = Mulam
## For example g(t) = I[ t <= 2.0 ]; look inside myLLfun(). 

data(GastricCancer)

# The following will take about 0.5 min to run.
# findU3(NPmle=c(1.816674, -1.002082), ConfInt=c(1.2, 0.5, 10),   
#        LogLikfn=myLLfun, Pfun=Pfun, dataMat=GastricCancer)

Run the code above in your browser using DataLab