Learn R Programming

ELYP (version 0.7-5)

ELrange: Find the Ractangular parameter region where EL is Only 4 below the Maximum Value.

Description

This function compute the hazard ratio, given beta1 beta2 a X and Mulam = int g(t) dH(t).

Usage

ELrange(mle, loglik, step, DataMat)

Value

A list with Step [a vector] and TempV [a matrix]

Arguments

mle

The NPMLE of the parameters value.

loglik

a function. Takes 2 inputs: mle and DataMat. output one scalar = loglik value.

step

a vector, same length as mle. The initial search step.

DataMat

The data matrix, to be used by loglik( ).

Author

Mai Zhou

Details

Say something.

References

Zhou, M. (2002). Computing censored empirical likelihood ratio by EM algorithm. Tech Report, Univ. of Kentucky, Dept of Statistics

Examples

Run this code
## censored regression with one right censored observation.
## we check the estimation equation, with the MLE inside myfun7. 
y <- c(3, 5.3, 6.4, 9.1, 14.1, 15.4, 18.1, 15.3, 14, 5.8, 7.3, 14.4)
x <- c(1, 1.5, 2,   3,   4,    5,    6,    5,    4,  1,   2,   4.5)
d <- c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0)

Run the code above in your browser using DataLab