R/data.R

#' wide format of ordinal response of Schizophrenia data.
#'
#' A dataset containing the treatment and ordinal responses measured at baseline and 3 post-baseline visits
#'
#' @format A data frame with 437 rows and 5 variables:
#' \describe{
#'   \item{tx}{treatment, 1 for treated and 0 for placebo}
#'   \item{y0}{ordinal response at the baseline}
#'   \item{y1, y3, y6}{ordinal response at the post-baseline week 1, 3, and 6.}
#' }
#' @source long-to-wise tranformation of schizo data, i.e. schizow = data.table::dcast(schizo, id + tx ~ week, value.var = "imps79o")
"schizow"



#' wide format of binary response of Schizophrenia data.
#'
#' A dataset containing the treatment and binary responses measured at baseline and 3 post-baseline visits
#'
#' @format A data frame with 437 rows and 5 variables:
#' \describe{
#'   \item{tx}{treatment, 1 for treated and 0 for placebo}
#'   \item{y0}{binary response at the baseline}
#'   \item{y1, y3, y6}{binary response at the post-baseline week 1, 3, and 6.}
#' }
#' @source long-to-wise tranformation of schizo data, i.e. schizob = data.table::dcast(schizo, id + tx ~ week, value.var = "imps79b")
"schizob"


#' wide format of continuous response of antidepressant data.
#'
#' A data set containing the treatment and continuous responses measured at baseline and 4 post-baseline visits
#'
#' @format A data frame with 172 rows and 6 variables:
#' \describe{
#'   \item{PID}{Patient ID}
#'   \item{tx}{Treatment, 1 for treated and 0 for placebo}
#'   \item{y0}{HADM-17 measurement at the baseline}
#'   \item{y1, y2, y4, y6}{Change score of HADM-17 measurement at the post-baseline week 1, 2, 4, and 6.}
#' }
#' @source https://www.lshtm.ac.uk/research/centres-projects-groups/missing-data#dia-missing-data
"antidep"
xsswang/remiod documentation built on Feb. 20, 2023, 9:29 a.m.