Skip to content

Commit

Permalink
added new doc templates and refined some others
Browse files Browse the repository at this point in the history
  • Loading branch information
bblodfon committed Oct 7, 2024
1 parent 73a6748 commit b4b2b2b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion man-roxygen/details_method.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' @section Implementation differences (time-integration):
#' @section Implementation differences:
#'
#' If comparing the integrated graf score to other packages, e.g.
#' \CRANpkg{pec}, then `method = 2` should be used. However the results may
Expand Down
3 changes: 2 additions & 1 deletion man-roxygen/param_tmax.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#' @section Parameter details:
#' - `t_max` (`numeric(1)`)\cr
#' Cutoff time (i.e. time horizon) to evaluate the measure up to.
#' Cutoff time \eqn{\tau^*} (i.e. time horizon) to evaluate the measure up to.
#' Mutually exclusive with `p_max` or `times`.
#' This will effectively remove test observations for which the observed time
#' (event or censoring) is strictly more than `t_max`.
#' It's recommended to set `t_max` to avoid division by `eps`, see Details.
#' If `t_max` is not specified, an `Inf` time horizon is assumed.
9 changes: 9 additions & 0 deletions man-roxygen/properness.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#' @section Properness:
#'
#' <%=proper_id%> is strictly proper when the censoring distribution is independent
#' of the survival distribution and when \eqn{G(t)} is fit on a sufficiently large dataset.
#' <%=improper_id%> is never proper. Use `proper = FALSE` for <%=improper_id%> and
#' `proper = TRUE` for <%=proper_id%>.
#' Results may be very different if many observations are censored at the last
#' observed time due to division by \eqn{1/eps} in `proper = TRUE`.
#'
21 changes: 21 additions & 0 deletions man-roxygen/which_times.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#' @section Time points used for evaluation:
#' If the `times` argument is not specified (`NULL`), then the unique (and
#' sorted) time points from the **test set** are used for evaluation of the
#' time-integrated score.
#' This was a design decision due to the fact that different predicted survival
#' distributions \eqn{S(t)} usually have a **discretized time domain** which may
#' differ, i.e. in the case the survival predictions come from different survival
#' learners.
#' Essentially, using the same set of time points for the calculation of the score
#' minimizes the bias that would come from using different time points.
#' We note that \eqn{S(t)} is by default constantly interpolated for time points that fall
#' outside its discretized time domain.
#'
#' Naturally, if the `times` argument is specified, then exactly these time
#' points are used for evaluation.
#' A warning is given to the user in case some of the specified `times` fall outside
#' of the time point range of the test set.
#' The assumption here is that if the test set is large enough, it should have a
#' time domain/range similar to the one from the train set, and therefore time
#' points outside that domain might lead to interpolation or extrapolation of \eqn{S(t)}.
#'

0 comments on commit b4b2b2b

Please sign in to comment.