Pfun2: The Hazard Ratio in YP Model as a Function of beta1, beta2,...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/Pfun2.R

Description

This function compute the hazard ratio based on a Yang-Prentice model, given beta1, beta2, a, X and Mulam = int g(t) dH(t).

Usage

1
Pfun2(b1, b2, a, X, Mulam)

Arguments

b1

parameter value. = short term hazard ratio

b2

parameter: long term hazard ratio.

a

parameter

X

covariate

Mulam

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

Details

The flexibility also rest on the definition of Mulam: it can using any f(t) function. If we use indicator I[ t <= t0 ] then Mulam is just the baseline cumulative hazard funtion at t0. Where do you define the Mulam? (in fitYP3....)

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)

Example output



ELYP documentation built on May 2, 2019, 5:17 a.m.

Related to Pfun2 in ELYP...