Changelog
abslife 0.1.3
Fixed problem with censoring in the vignette
Function to calculate expected lifetime.
prep_ggplotfunction for customized plotting.Changing default colors
Improved printing methods
abslife 0.1.0
Includes search and GitHub link to navbar.
Auxiliary functions for calculating the matrices necessary to calculate the standard error of the density (i.e., pmf) asymptotic covariance matrix.
abslife 0.0.96
- When
se_log_hazardis zero, the lower and upper CI for the hazard rate are fixed at zero as well. The reason for doing this is that havingNAs for those quantities was causing unexpected behavior on the plots.
abslife 0.0.95
hazardCI fixed for graphics with multiple confidence levels as well.hazardCI upper bound does not exceed 1 anymore.Now we have a
ci_levelparameter that allows plotting multiple confidence intervals at once and changes default colors for plotting.calc_cdffunction also esimates the density (in addition to the CDF) and its output has been modified to adata.framewith thelifetimeand the respective density and CDF evaluations.summaryandplotmethods for the output of thecalc_cdffunction.\(\hat{f}\) is no longer part of the output
\(\hat{u}\) is now referred to as
risk_setralife_cdffunction to sample “time to event” data has been included in the package.
abslife 0.0.94
time_to_eventbecomes lifetimeLogo included in the package website and README file.
First draft for a vignette.
Two new datasets:
aart(for left-truncation) andmbalt(left-truncation + right-censoring).event_indicatoris no longer an argument ofestimate_hazard().
abslife 0.0.93
ggplot2included as a suggested packagefixed “check” for number of events
estimate_hazardbroken into smaller functions to make it easier to mantain.Included a
summaryfunction for thealifeobjectsExtended plot function to deal with multiple event types
rlangbecomes a dependency :(autoplotmethod for making graphs withggplot2
abslife 0.0.91
event_typeparameter in theestimate_hazardfunction now deals with competing risks.single_t_hazardinternal function created. It is meant to make the code easier to debug by spliting the bigestimate_hazardfunction into self-contained chunks.ci_levelnow is a parameter of theestimate_hazardfunction.First draft for the
estimate_hazardfunction. So far, we do not have competing risks implemented.calc_tphelper calculates \(\Delta\) and \(m\) based on left-truncation and time-to-event variables and outputs a sequence ranging from \(\Delta + 1\) to \(\Delta + m\).Create a class
alifeto enable aplotmethod for theestimate_hazardfunction output.Function to carry hazard estimates forward when a “zero hazard” is observed.