Skip to content

Commit

Permalink
added data documentation
Browse files Browse the repository at this point in the history
n8thangreen committed Dec 15, 2023
1 parent faca3c3 commit 0d71497
Showing 4 changed files with 105 additions and 1 deletion.
48 changes: 48 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

#' Data set for individual level patient data
#'
#' This data set contains simulated patient covariate and outcome values.
#'
#' @name AC_IPD
#' @docType data
#' @format A data list including the variables needed for the mimR basic example. The variables are as follows:
#' \describe{
#' \item{list("X1")}{Numeric covariate}
#' \item{list("X2")}{Numeric covariate}
#' \item{list("X3")}{Numeric covariate}
#' \item{list("X4")}{Numeric covariate}
#' \item{list("trt")}{Integer treatment identifier}
#' \item{list("y")}{Integer binary outcome}
#' }
#' @references Remiro‐Azócar A, Heath A, Baio G (2022)
#'
#' @keywords datasets
NULL

#' Data set for aggregate level patient data
#'
#' This data set contains summaries of simulated patient covariate and outcome values.
#'
#' @name BC_ALD
#' @docType data
#' @format A data list including the variables needed for the mimR basic example. The variables are as follows:
#' \describe{
#' \item{list("mean.X1")}{Numeric value}
#' \item{list("mean.X2")}{Numeric value}
#' \item{list("mean.X3")}{Numeric value}
#' \item{list("mean.X4")}{Numeric value}
#' \item{list("sd.X1")}{Numeric standard deviation value}
#' \item{list("sd.X2")}{Numeric standard deviation value}
#' \item{list("sd.X3")}{Numeric standard deviation value}
#' \item{list("sd.X4")}{Numeric standard deviation value}
#' \item{list("y.B.sum")}{Integer number of patients with event on B treatment}
#' \item{list("y.B.bar")}{Numeric proportion of patients on B treatment}
#' \item{list("N.B")}{Integer Total number of patients on B treatment}
#' \item{list("y.C.sum")}{Integer number of patients with event on C treatment}
#' \item{list("y.C.bar")}{Numeric proportion of patients on C treatment}
#' \item{list("N.C")}{Integer Total number of patients on C treatment}
#' }
#' @references Remiro‐Azócar A, Heath A, Baio G (2022)
#'
#' @keywords datasets
NULL
24 changes: 24 additions & 0 deletions man/AC_IPD.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions man/BC_ALD.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/gcomp_stan.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0d71497

Please sign in to comment.