loglik_Chen_piecewise_exponential: Log-likelihood function for piecewise-exponential...

View source: R/loglik_Chen_piecewise_exponential.R

loglik_Chen_piecewise_exponentialR 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

  • Chen, Tai-Tsang. "Predicting analysis times in randomized clinical trials with cancer immunotherapy." BMC medical research methodology 16.1 (2016): 1-10.


EventPredInCure documentation built on May 29, 2024, 11:04 a.m.