Learn R Programming

lrstat (version 0.2.13)

pwexploglik: Profile Log-Likelihood Function for the Change Points in Piecewise Exponential Approximation

Description

Obtains the profile log-likelihood function for the change points in the piecewise exponential approximation to a survival function.

Usage

pwexploglik(tau, S, ...)

Value

A list with the following three components:

  • piecewiseSurvivalTime: A vector that specifies the starting time of piecewise exponential survival time intervals.

  • lambda: A vector of hazard rates for the event. One for each analysis time interval.

  • loglik: The value of the profile log-likelihood.

Arguments

tau

The numeric vector of change points.

S

The survival function of a univariate survival time.

...

Additional arguments to be passed to S.

Author

Kaifeng Lu, kaifenglu@gmail.com

Examples

Run this code

pwexploglik(tau = c(0.5, 1.2, 2.8), pweibull,
            shape = 1.37, scale = 1/0.818, lower.tail = FALSE)

Run the code above in your browser using DataLab