Man pages for pammtools
Piece-Wise Exponential Additive Mixed Modeling Tools for Survival Analysis

add_cifAdd cumulative incidence function to data
add_counterfactual_transitionsAdd counterfactual observations for possible transitions
add_hazardAdd predicted (cumulative) hazard to data set
add_inspectionsTurn exact event times into interval-censored observations
add_surv_probAdd survival probability estimates
add_tdcAdd time-dependent covariate to a data set
add_termEmbeds the data set with the specified (relative) term...
add_trans_ciAdd transition probabilities confidence intervals
add_trans_probAdd transition probabilities
as.data.frame.crpsTransform crps object to data.frame
as_pedTransform data to piece-wise exponential data (PED)
as_ped_crCompeting risks trafo
calc_ciCalculate confidence intervals
combine_dfCreate a data frame from all combinations of data frames
compute_cumu_diffCalculate difference in cumulative hazards and respective...
cumulative_coefficientExtract cumulative coefficients (cumulative hazard...
dailyTime-dependent covariates of the 'patient' data set.
dplyr_verbs'dplyr' verbs for 'ped'-objects
elra_matrixCreate matrix components for cumulative effects
fcumuA formula special used to handle cumulative effect...
formula_helpersExtract variables from the left-hand-side of a formula
from_to_pairsExtract transition information from different objects
geom_hazard(Cumulative) (Step-) Hazard plots.
geom_stepribbonStep ribbon plots.
get_cifCalculate CIF for one cause
get_coefsExtract model coefficients on the scale of the design matrix
get_cumu_effCalculate (or plot) cumulative effect for all time-points of...
get_cumu_hazardCalculate cumulative hazard
get_cumulativeExpand time-dependent covariates to functionals
get_cutObtain interval break points
get_event_typesExtract event types
get_hazardPoint hazard predictor (backend primitive)
get_intervalsInformation on intervals in which times fall
get_lagleadConstruct or extract data that represents a lag-lead window
get_ped_formExtract variables from the left-hand-side of a formula
get_plotinfoExtract plot information for all special model terms
get_sim_ciCalculate simulation based confidence intervals
get_smooth_termsEnumerate plottable univariate smooth terms of a fitted model
get_surv_probCalculate survival probabilities
get_tdc_formExtract variables from the left-hand-side of a formula
get_tdc_varsExtract variables from the left-hand-side of a formula
get_termExtract the partial effect of a single smooth curve
get_term_legacyExtract a partial effect for models without a '$smooth'...
get_termsExtract the partial effects of univariate smooth model terms
get_VpExtract the (Bayesian) covariance matrix of the model...
gg_fixedForrest plot of fixed coefficients
gg_lagleadPlot lag-lead windows
gg_partialVisualize effect estimates for specific covariate...
gg_rePlot Normal QQ plots for random effects
gg_slicePlot 1D (smooth) effects
gg_smoothPlot smooth 1d terms of gam objects
gg_state_occupationPlot state occupation probabilities
gg_tensorPlot tensor product effects
has_tdcChecks if data contains time-dependent covariates
hazard_ciAnalytic hazard with confidence interval (coefficient models)
ic_pred_cacheBuild the subject-by-interval prediction grid used for IC...
impute_ic_crDraw event times and causes for interval-censored...
impute_ic_timesDraw event times for interval-censored subjects from the...
interval_censoredDetect, parse and transform interval-censored survival data
int_infoCreate start/end times and interval information
make_XCreate design matrix from a suitable object
make_X.scamCreate design matrix from a suitable object
modusCalculate the modus
nest_tdcCreate nested data frame from data with time-dependent...
newdataConstruct a data frame suitable for prediction
nuclearTime until nuclear power plant construction in different...
pammFit a piece-wise exponential additive model
pamm_icFit a PAMM to interval-censored data via multiple imputation
pamm_ic_crFit a competing-risks PAMM to interval-censored data via...
pamm_ic_poolingPooling of multiple-imputation PAMM fits
pammtoolspammtools: Piece-wise exponential additive mixed modeling...
parse_by_levelParse the factor level from a factor-by smooth label
patientSurvival data of critically ill ICU patients
ped_infoExtract interval information and median/modus values for...
pipePipe operator
pool_pamm_fitsPool a list of (stripped) imputation fits into a pooled...
predictSurvProb.pammS3 method for pamm objects for compatibility with package pec
prep_concurrentExtract information on concurrent effects
reconstruct_cutpointsEnsure all breakpoints are present in newdata for cumulative...
reconstruct_intlenReconstruct intlen from time variable and stored cut points
resolve_termsResolve requested terms against the model's plottable smooths
rpexpDraw random numbers from piece-wise exponential distribution.
sample_coefsDraw coefficients from their approximate posterior...
sample_infoExtract information of the sample contained in a data set
seq_rangeGenerate a sequence over the range of a vector
simdf_elraSimulated data with cumulative effects
sim_hazardDraw hazard trajectories from a model's sampling distribution
sim_pexpSimulate survival times from the piece-wise exponential...
sim_pexp_crSimulate data for competing risks scenario
smooth.construct.fdl.smooth.specNew basis for penalized lag selection
smooth_term_rowsTurn a single mgcv smooth into zero or more curve...
specialsFormula specials for defining time-dependent covariates
split_dataFunction to transform data without time-dependent covariates...
split_data_multistateSplit data to obtain recurrent event data in PED format
staphTime until staphylococcus aureaus infection in children, with...
stop_if_undergrouped_for_cumulationGuard against silently-wrong cumulative results from...
strip_pamm_fitSlim down a fitted PAMM for storage inside a 'pamm_ic' object
tidiersExtract 1d smooth objects in tidy data format.
tidy_fixedExtract fixed coefficient table from model object
tidy_smoothExtract random effects in tidy data format.
tidy_smooth2dExtract 2d smooth objects in tidy format.
tumorStomach area tumor data
warn_about_new_time_pointsWarn if new t_j are used
warn_about_new_time_points.glmWarn if new t_j are used
pammtools documentation built on Aug. 27, 2026, 1:08 a.m.