The Hazard Ratio in YP Model as a Function of beta1 beta2 and Mulam.

Share:

Description

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

Usage

1
Pfun(b1, b2, Mulam)

Arguments

b1

a scalar, the parameter value.

b2

a scalar, parameter.

Mulam

It is int f(t)dH(t)= Mulam.

Details

Say something.

Value

A scalar which is the hazard ratio.

Author(s)

Mai Zhou

References

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

Examples

1
2
3
4
5
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.