Learn R Programming

EventPredInCure (version 1.0)

Event Prediction Including Cured Population

Description

Predicts enrollment and events assumed enrollment and treatment-specific time-to-event models, and calculates test statistics for time-to-event data with cured population based on the simulation.Methods for prediction event in the existence of cured population are as described in : Chen, Tai-Tsang(2016) .

Copy Link

Version

Install

install.packages('EventPredInCure')

Monthly Downloads

150

Version

1.0

License

GPL (>= 2)

Maintainer

Bo Wei

Last Published

January 12th, 2024

Functions in EventPredInCure (1.0)

fitEvent

Fit time-to-event model
loglik_Chen_exponential

Log-likelihood function for exponential distribution with cured population
getPrediction

Enrollment and event prediction
predictEvent

Predict event time for ongoing subjects with or without cured population.
smed

Function to output summary statistics from survfit function output
test_plot

Function to plot KM plot for time-to-event data in simulation
summarizeObserved

Summarize observed data
finalData

Final enrollment and event data after achieving the target number of events
b4pst

Function to calculate survival time and censor variables before and post a time lag (delay treatment effect time)
SP_Chen_log_normal

Survival probability function of the log-normal distribution with cured population
fitDropout

Fit time-to-dropout model
interimData1

Interim enrollment and event data before enrollment completion
loglik_Chen_piecewise_exponential

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

Log-likelihood function for log-normal distribution with cured population
interimData2

Interim enrollment and event data after enrollment completion
loglik_Chen_weibull

Log-likelihood function for Weibull distribution with cured population
predictEnrollment

Predict enrollment
fitEnrollment

Fit enrollment model
test_procedure

Function to provide summary and test statistics based on simulation.
loglik_Chen_log_logistic

Log-likelihood function for log-logistic distribution with cured population
tte

Calculating log-rank test p-value, median time from each arm, hazard ratio between two arms, number of subjects and events in time-to-event outcomes.
SP_Chen_weibull

Survival probability function of the Weibull distribution with cured population
Chen_2016_event_time_abovetime0

Function to generate event time based on Chen 2016 method for ongoing subject
SP_Chen_exponential

Survival probability function of the exponential distribution with cured population
Chen_2016_event_time

Function to generate event time in the existence of cured population
FH_test

Fleming-Harrington weighted log-rank tests
SP_Chen_piecewise_exponential

Survival probability function of the piecewise exponential distribution with cured population
SP_Chen_log_logistic

Survival probability function of the log-logistic distribution with cured population
Chen_2016_event_time_piecewise_exp_abovetime0

Function to generate event time with piecewise exponential distribution for ongoing subject in the existence of cured population
EventPredInCure-package

Event Prediction Including Cured Population