R/wnpmle-package.R

#' wnpmle: Weighted NPMLE for the Subdistribution of a Competing Risk and the
#' Marginal Rate of Recurrent Events with a Competing Terminal Event
#'
#' Implements the weighted nonparametric maximum likelihood estimator (wNPMLE)
#' for the subdistribution of a competing risk (\code{type = "cmprsk"}) and for
#' the marginal rate of recurrent events in the presence of a competing
#' terminal event (\code{type = "recurrent"}). Two semiparametric transformation models are
#' provided: the Box-Cox transformation model and the logarithmic
#' transformation model. Both use automatic differentiation via TMB for
#' efficient and exact gradient computation.
#'
#' The main user-facing function is \code{\link{wnpmle_fit}}.
#'
#' @references
#' Bellach, A. and Kosorok, M.R. (2026). Pseudo-likelihood regression for the
#' marginal rate of recurrent events with a competing terminal event.
#' \emph{arXiv preprint} arXiv:2605.25934. \doi{10.48550/arXiv.2605.25934}
#'
#' Bellach, A., Kosorok, M.R., Rüschendorf, L. and Fine, J.P. (2019). Weighted
#' NPMLE for the subdistribution of a competing risk. \emph{Journal of the
#' American Statistical Association}, 114(525), 259-270.
#' \doi{10.1080/01621459.2017.1401540}
#'
#' @keywords internal
#' @useDynLib wnpmle, .registration = TRUE
"_PACKAGE"

## usethis namespace: start
## usethis namespace: end
NULL

Try the wnpmle package in your browser

Any scripts or data that you put into this service are public.

wnpmle documentation built on Dec. 1, 2026, 9:06 a.m.