# Analysis of Event Data with Two Time Scales

## Documentation for package ‘TwoTimeScales’ version 1.2.1

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS
- Package README

## Help Pages

covariates_plot | Plot of the covariates' effects
cumhaz2ts | Cumulative hazard over two time scales
cuminc2ts | Cumulative incidence surface over two time scales
exposures_events_1d | Bin data on one time scale
exposures_events_2d | Bin data on two time scales
exposures_events_Lexis | Bin data on the Lexis diagram
fit1ts | Fit a smooth hazard model with one time scale
fit2ts | Fit a smooth hazard model with two time scales
fitpgam | Fit a log-additive model over two time scales
fitvcm | Fit a Varying Coefficient Model (VCM) over two time scales
get_hazard_1d | Get estimated (log-)hazard values with 1 time scale
get_hazard_1d_LMM | Get estimated (log-)hazard values with 1 time scale
get_hazard_2d | Get estimated (log-)hazard surface with 2 time scales
get_hazard_2d_LMM | Get estimated (log-)hazard surface with 2 time scales
get_hr | Get the Hazard Ratios with their Standard Errors
haz2tsLMM_summary | Summary function for object of class 'haz2tsLMM'
haz2tsPGAM_summary | Summary function for object of class 'haz2tsPGAM'
haz2tsVCM_summary | Summary function for object of class 'haz2tsVCM'
haz2ts_summary | Summary function for object of class 'haz2ts'
imageplot_2ts | Image Plot of 2ts hazard
imageplot_SE | Image Plot of Standard Errors for the 2ts hazard
make_bins | Construct bins over one or more time axes
make_grid | Make a grid of points to evaluate B-splines
plot.haz1ts | Plot method for a haz1ts object.
plot.haz1tsLMM | Plot method for a haz1ts object.
plot.haz2ts | Plot method for a haz2ts object.
plot.haz2tsLMM | Plot method for a haz2tsLMM object.
plot.haz2tsPGAM | Plot method for a haz2tsPGAM object.
plot.haz2tsVCM | Plot method for a haz2tsVCM object.
plot_slices | Plot slices of the (log-) hazard
predict_cif2ts_pointwise | Point-wise prediction of cumulative incidence over 2 time scale
predict_comprisks2ts | Predict overall survival and cumulative incidence functions
predict_haz2ts | Prediction method for objects of class "haz2ts"
predict_haz2ts_pointwise | Point-wise prediction hazard 2 time scale
prepare_data | Prepare raw data by binning them in 1d or 2d
prepare_data_LMMsolver | Process data to fit model with LMMsolver
print.data2ts | Print method for a 'data2ts' object
reccolon2ts | Data from the chemotherapy for stace B/C colon cancer study
select_model2ts | Selects best model among a group of fitted models
surv2ts | Survival function with two time scales