loglik_Chen_piecewise_exponential {EventPredInCure}R Documentation

Log-likelihood function for piecewise-exponential distribution with cured population

Description

Provide log-likelihood function for piecewise-exponential distribution with cured population

Usage

loglik_Chen_piecewise_exponential(par = NULL, df, piecewiseSurvivalTime)

Arguments

par

a vector with m+1 elements, where the first element denotes the logistic of the proportion of the cured population, and the rest element denotes the log of the hazard rate in intervals

df

The subject-level event data, including time and event.

piecewiseSurvivalTime

A vector with length m that specifies the time intervals for the piecewise exponential survival distribution. Must start with 0, e.g., c(0, 60) breaks the time axis into 2 event intervals: [0, 60) and [60, Inf). By default, it is set to 0.

Value

The negative value of the log-likelihood function given parameter par and the dataset df

References


[Package EventPredInCure version 1.0 Index]