diff --git a/R/data.R b/R/data.R index e0c0eb34..591b6681 100644 --- a/R/data.R +++ b/R/data.R @@ -7,8 +7,8 @@ #' #' @format #' A list containing the following elements: -#' \itemize{ -#' \item{Survival}{ A data frame containing patient information and time to 3 separate survival endpoints.} +#' \describe{ +#' \item{Survival}{A data frame containing patient information and time to 3 separate survival endpoints.} #' \item{Costs}{A list of data frames. The first data frame contains medical cost data and the #' second data frame contains drug cost data.} #' } @@ -52,12 +52,12 @@ #' are also included to facilitate cost-effectiveness analysis. #' @format #' A list containing the following elements: -#' \itemize{ -#' \item{transitions}{ A data frame containing the times at which patient transitions between health states based +#' \describe{ +#' \item{transitions}{A data frame containing the times at which patient transitions between health states based #' on the [prothr][mstate::prothr] dataset from the [mstate][mstate::mstate] package.} -#' \item{costs}{ A list of data frames. The first data frame contains summary medical cost estimates and the +#' \item{costs}{A list of data frames. The first data frame contains summary medical cost estimates and the #' second data frame contains drug cost data.} -#' \item{utility}{ A data frame of summary utility estimates.} +#' \item{utility}{A data frame of summary utility estimates.} #' } #' #' @section Transitions data: @@ -111,7 +111,7 @@ #' #' @format #' A list containing the following elements: -#' \itemize{ +#' \describe{ #' \item{transitions}{ A data frame containing patient transitions between health #' states at discrete time intervals (i.e., on a yearly basis).} #' \item{costs}{ A list of data frames. The first data frame contains diff --git a/R/params.R b/R/params.R index 7e6cee17..46aa21ff 100644 --- a/R/params.R +++ b/R/params.R @@ -112,12 +112,12 @@ summary_params_list <- function(object, prob = 0.95, idcol = "model", ...) { #' @return An object prefixed by `params_`. Mapping between `create_params` #' and the classes of the returned objects are: #' \itemize{ -#' \item{`create_params.lm` ->}{ [`params_lm`]} -#' \item{`create_params.multinom` ->}{ [`params_mlogit`]} -#' \item{`create_params.multinom_list` ->}{ [`params_mlogit_list`]} -#' \item{`create_params.flexsurvreg` ->}{ [`params_surv`]} -#' \item{`create_params.flexsurvreg_list` ->}{ [`params_surv_list`]} -#' \item{`create_params.partsurvfit` ->}{ [`params_surv_list`]} +#' \item `create_params.lm` -> [`params_lm`] +#' \item `create_params.multinom` -> [`params_mlogit`] +#' \item `create_params.multinom_list` -> [`params_mlogit_list`] +#' \item `create_params.flexsurvreg` -> [`params_surv`] +#' \item `create_params.flexsurvreg_list` -> [`params_surv_list`] +#' \item `create_params.partsurvfit` -> [`params_surv_list`] #' } #' @name create_params #' @examples diff --git a/R/params_surv.R b/R/params_surv.R index 8ea2a153..bca2cb60 100644 --- a/R/params_surv.R +++ b/R/params_surv.R @@ -33,10 +33,10 @@ #' and the identity function if the parameter space is unrestricted. #' #' The types of distributions that can be specified are: -#' \itemize{ +#' \describe{ #' \item{`exponential` or `exp`}{ Exponential distribution. `coef` #' must contain the `rate` parameter on the log scale and the same parameterization as in -#' [`stats::Exponential`]}. +#' [`stats::Exponential`].} #' #' \item{`weibull` or `weibull.quiet`}{ Weibull distribution. The first #' element of `coef` is the `shape` parameter (on the log scale) and the second diff --git a/R/sim-general.R b/R/sim-general.R index d570fbc7..a6ba9e5a 100644 --- a/R/sim-general.R +++ b/R/sim-general.R @@ -663,9 +663,9 @@ sim_costs <- function(object, models, dr = .03, #' #' @format #' A list containing two elements: -#' \itemize{ -#' \item{`costs`}{ Total (discounted) costs by category.} -#' \item{`qalys`}{ (Discounted) quality-adjusted life-years.} +#' \describe{ +#' \item{`costs`}{Total (discounted) costs by category.} +#' \item{`qalys`}{(Discounted) quality-adjusted life-years.} #' } #' #' @section Costs: @@ -692,4 +692,4 @@ sim_costs <- function(object, models, dr = .03, #' } #' #' @name ce -NULL \ No newline at end of file +NULL diff --git a/R/utils.R b/R/utils.R index 901a002a..a0c7842c 100644 --- a/R/utils.R +++ b/R/utils.R @@ -3,8 +3,6 @@ #' #' \code{check} is a generic function for validating the inputs of class objects. #' @param object object to check. -#' @param inner_class When checking a list of objects, the class of elements within -#' the inner most list. #' @param ... Further arguments passed to or from other methods. #' #' @return If validation is successful, returns the object in question; otherwise, diff --git a/man/ce.Rd b/man/ce.Rd index 47a4bdc0..cc22c60c 100644 --- a/man/ce.Rd +++ b/man/ce.Rd @@ -5,9 +5,9 @@ \title{A cost-effectiveness object} \format{ A list containing two elements: -\itemize{ -\item{\code{costs}}{ Total (discounted) costs by category.} -\item{\code{qalys}}{ (Discounted) quality-adjusted life-years.} +\describe{ +\item{\code{costs}}{Total (discounted) costs by category.} +\item{\code{qalys}}{(Discounted) quality-adjusted life-years.} } } \description{ diff --git a/man/check.Rd b/man/check.Rd index f20b0b18..2a7e89a0 100644 --- a/man/check.Rd +++ b/man/check.Rd @@ -36,9 +36,6 @@ check(object, ...) \item{object}{object to check.} \item{...}{Further arguments passed to or from other methods.} - -\item{inner_class}{When checking a list of objects, the class of elements within -the inner most list.} } \value{ If validation is successful, returns the object in question; otherwise, diff --git a/man/create_params.Rd b/man/create_params.Rd index fc7bc459..3fec39ba 100644 --- a/man/create_params.Rd +++ b/man/create_params.Rd @@ -55,12 +55,12 @@ the \code{silent} argument of \code{\link[=try]{try()}}.} An object prefixed by \code{params_}. Mapping between \code{create_params} and the classes of the returned objects are: \itemize{ -\item{\code{create_params.lm} ->}{ \code{\link{params_lm}}} -\item{\code{create_params.multinom} ->}{ \code{\link{params_mlogit}}} -\item{\code{create_params.multinom_list} ->}{ \code{\link{params_mlogit_list}}} -\item{\code{create_params.flexsurvreg} ->}{ \code{\link{params_surv}}} -\item{\code{create_params.flexsurvreg_list} ->}{ \code{\link{params_surv_list}}} -\item{\code{create_params.partsurvfit} ->}{ \code{\link{params_surv_list}}} +\item \code{create_params.lm} -> \code{\link{params_lm}} +\item \code{create_params.multinom} -> \code{\link{params_mlogit}} +\item \code{create_params.multinom_list} -> \code{\link{params_mlogit_list}} +\item \code{create_params.flexsurvreg} -> \code{\link{params_surv}} +\item \code{create_params.flexsurvreg_list} -> \code{\link{params_surv_list}} +\item \code{create_params.partsurvfit} -> \code{\link{params_surv_list}} } } \description{ diff --git a/man/mstate3_exdata.Rd b/man/mstate3_exdata.Rd index 8938e826..ed2a1316 100644 --- a/man/mstate3_exdata.Rd +++ b/man/mstate3_exdata.Rd @@ -6,12 +6,12 @@ \title{Example data for a reversible 3-state multi-state model} \format{ A list containing the following elements: -\itemize{ -\item{transitions}{ A data frame containing the times at which patient transitions between health states based +\describe{ +\item{transitions}{A data frame containing the times at which patient transitions between health states based on the \link[mstate:Liver-cirrhosis-data]{prothr} dataset from the \link[mstate:mstate-package]{mstate} package.} -\item{costs}{ A list of data frames. The first data frame contains summary medical cost estimates and the +\item{costs}{A list of data frames. The first data frame contains summary medical cost estimates and the second data frame contains drug cost data.} -\item{utility}{ A data frame of summary utility estimates.} +\item{utility}{A data frame of summary utility estimates.} } } \usage{ diff --git a/man/multinom3_exdata.Rd b/man/multinom3_exdata.Rd index 4ab0f92e..51638cce 100644 --- a/man/multinom3_exdata.Rd +++ b/man/multinom3_exdata.Rd @@ -6,7 +6,7 @@ \title{Example data for a 3-state multinomial model} \format{ A list containing the following elements: -\itemize{ +\describe{ \item{transitions}{ A data frame containing patient transitions between health states at discrete time intervals (i.e., on a yearly basis).} \item{costs}{ A list of data frames. The first data frame contains diff --git a/man/params_surv.Rd b/man/params_surv.Rd index 10f70592..693a5a05 100644 --- a/man/params_surv.Rd +++ b/man/params_surv.Rd @@ -45,10 +45,10 @@ inverse transformation function \eqn{g^{-1}()}, and the identity function if the parameter space is unrestricted. The types of distributions that can be specified are: -\itemize{ +\describe{ \item{\code{exponential} or \code{exp}}{ Exponential distribution. \code{coef} must contain the \code{rate} parameter on the log scale and the same parameterization as in -\code{\link[stats:Exponential]{stats::Exponential}}}. +\code{\link[stats:Exponential]{stats::Exponential}}.} \item{\code{weibull} or \code{weibull.quiet}}{ Weibull distribution. The first element of \code{coef} is the \code{shape} parameter (on the log scale) and the second diff --git a/man/psm4_exdata.Rd b/man/psm4_exdata.Rd index ac8c157f..43d7a4a2 100644 --- a/man/psm4_exdata.Rd +++ b/man/psm4_exdata.Rd @@ -6,8 +6,8 @@ \title{Example data for a 4-state partitioned survival model} \format{ A list containing the following elements: -\itemize{ -\item{Survival}{ A data frame containing patient information and time to 3 separate survival endpoints.} +\describe{ +\item{Survival}{A data frame containing patient information and time to 3 separate survival endpoints.} \item{Costs}{A list of data frames. The first data frame contains medical cost data and the second data frame contains drug cost data.} }