This is a Major new release
absoluteRisk() now always contains the time variable in the first column, regardless of the length of time. This will break earlier code that depended on the previous behaviour.ggplot2::geom_ribbon() instead of ggplot2::geom_segment().*.params arguments. Several arguments are now deprecated.popTimeExposure class and the corresponding plot method. popTime() now returns an exposure attribute which contains the name of the exposure variable in the dataset. The plot method for objects of class popTime will use this exposure attribute to create exposure stratified population time plots.absoluteRisk(). Trapezoidal rule to perform numerical integration for absolute risk estimation, providing significant speed up.absoluteRisk() using the arguments type and addZero.plot.singleEventCB(). The hazard function plot requires the visreg package to be installed.plot.absRiskCB().time is unspecified, absoluteRisk() now computes the cumulative incidence at ntimes equidistant points between 0 and the max failure time.absoluteRisk() can now compute the cumulative incidence for a "typical" covariate profile with newdata = "typical". “Typical” corresponds to the median for continuous variables and the mode for factors (each variable is summarised independently).eprchd, brcancer, support and simdat datasets to the package.riskRegression::predictRisk() method for singleEventCB objects.data.table and ggplot2.family="gbm" and nonlinear functions of time or interactions are specified.singleEventCB class to object returned by fitSmoothHazard()absRiskCB class to object returned by absoluteRisk()glmnet::prepareX to convert factors into indicator variablesNEWS.md file to track changes to the package.