R/general.R

#' maraca package.
#'
#' @docType package
#' @name maraca
#' @import hce
#' @import ggplot2
#' @aliases maraca-package
NULL

#' Example HCE scenario A.
#'
#' This is example data frame containing the example for scenario A.
#'
#' @docType data
#' @usage data(hce_scenario_a)
#' @format A data frame with 1000 rows.
#' \describe{
#'   \item{SUBJID}{The patient identifier}
#'   \item{GROUP}{Which type of outcome the row belongs to}
#'   \item{GROUPN}{Not required for computation.
#'                 The group as an arbitrary numerical value}
#'   \item{AVAL0}{Contains both the time-to-event data for hard outcomes
#'                and the continuous data for the continuous outcome}
#'   \item{AVAL}{Not required for computation. Create an ordered sequence
#'               of values where the AVAL0 value associated with the patient
#'               is offset by GROUPN}
#'   \item{TRTP}{Treatment group}
#' }
"hce_scenario_a"

#' Example HCE scenario B.
#'
#' This is example data frame containing the example for scenario B.
#'
#' @docType data
#' @usage data(hce_scenario_b)
#' @format A data frame with 1000 rows.
#' \describe{
#'   \item{SUBJID}{The patient identifier}
#'   \item{GROUP}{Which type of outcome the row belongs to}
#'   \item{GROUPN}{Not required for computation.
#'                 The group as an arbitrary numerical value}
#'   \item{AVAL0}{Contains both the time-to-event data for hard outcomes
#'                and the continuous data for the continuous outcome}
#'   \item{AVAL}{Not required for computation. Create an ordered sequence
#'               of values where the AVAL0 value associated with the patient
#'               is offset by GROUPN}
#'   \item{TRTP}{Treatment group}
#' }
"hce_scenario_b"

#' Example HCE scenario C.
#'
#' This is example data frame containing the example for scenario C.
#'
#' @docType data
#' @usage data(hce_scenario_c)
#' @format A data frame with 1000 rows.
#' \describe{
#'   \item{SUBJID}{The patient identifier}
#'   \item{GROUP}{Which type of outcome the row belongs to}
#'   \item{GROUPN}{Not required for computation.
#'                 The group as an arbitrary numerical value}
#'   \item{AVAL0}{Contains both the time-to-event data for hard outcomes
#'                and the continuous data for the continuous outcome}
#'   \item{AVAL}{Not required for computation. Create an ordered sequence
#'               of values where the AVAL0 value associated with the patient
#'               is offset by GROUPN}
#'   \item{TRTP}{Treatment group}
#' }
"hce_scenario_c"

#' Example HCE scenario D.
#'
#' This is example data frame containing the example for scenario D.
#'
#' @docType data
#' @usage data(hce_scenario_d)
#' @format A data frame with 1000 rows.
#' \describe{
#'   \item{SUBJID}{The patient identifier}
#'   \item{GROUP}{Which type of outcome the row belongs to}
#'   \item{GROUPN}{Not required for computation.
#'                 The group as an arbitrary numerical value}
#'   \item{AVAL0}{Contains both the time-to-event data for hard outcomes
#'                and the continuous data for the continuous outcome}
#'   \item{AVAL}{Not required for computation. Create an ordered sequence
#'               of values where the AVAL0 value associated with the patient
#'               is offset by GROUPN}
#'   \item{TRTP}{Treatment group}
#' }
"hce_scenario_d"

#' Example HCE scenario KCCQ3.
#'
#' This is example data frame containing the example for scenario KCCQ3.
#'
#' @docType data
#' @usage data(hce_scenario_kccq3)
#' @format A data frame with 5000 rows.
#' \describe{
#'   \item{SUBJID}{The patient identifier}
#'   \item{GROUP}{Which type of outcome the row belongs to}
#'   \item{GROUPN}{Not required for computation.
#'                 The group as an arbitrary numerical value}
#'   \item{AVAL0}{Contains both the time-to-event data for hard outcomes
#'                and the continuous data for the continuous outcome}
#'   \item{AVAL}{Not required for computation. Create an ordered sequence
#'               of values where the AVAL0 value associated with the patient
#'               is offset by GROUPN}
#'   \item{TRTP}{Treatment group}
#'   \item{HFHT}{Not needed}
#'   \item{SEED}{Not needed}
#' }
"hce_scenario_kccq3"

Try the maraca package in your browser

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

maraca documentation built on May 29, 2024, 8:08 a.m.