Skip to content

Commit 4557322

Browse files
committed
new data.R
1 parent d2782a0 commit 4557322

File tree

1 file changed

+43
-25
lines changed

1 file changed

+43
-25
lines changed

R/data.R

Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,62 @@
55
#'
66
#' @name AC_IPD
77
#' @docType data
8-
#' @format A data list including the variables needed for the outstandR basic example. The variables are as follows:
8+
#' @format A data list including the variables needed for a outstandR basic example. The variables are as follows:
99
#' \describe{
10-
#' \item{list("X1")}{Numeric covariate}
11-
#' \item{list("X2")}{Numeric covariate}
12-
#' \item{list("X3")}{Numeric covariate}
13-
#' \item{list("X4")}{Numeric covariate}
14-
#' \item{list("trt")}{Integer treatment identifier}
15-
#' \item{list("y")}{Integer binary outcome}
10+
#' \item{X1}{Numeric covariate}
11+
#' \item{X2}{Numeric covariate}
12+
#' \item{X3}{Numeric covariate}
13+
#' \item{X4}{Numeric covariate}
14+
#' \item{trt}{Integer treatment identifier}
15+
#' \item{y}{Integer binary outcome}
1616
#' }
1717
#' @references Remiro‐Azócar A, Heath A, Baio G (2022)
18-
#'
18+
#' @source Simulated data
1919
#' @keywords datasets
2020
NULL
2121

22-
#' Data set for aggregate level patient data
22+
#' Data set for aggregate level patient data in wide format
2323
#'
2424
#' This data set contains summaries of simulated patient covariate and outcome values.
2525
#'
2626
#' @name BC_ALD
2727
#' @docType data
28-
#' @format A data list including the variables needed for the outstandR basic example. The variables are as follows:
28+
#' @format A data list including the variables needed for a outstandR basic example. The variables are as follows:
2929
#' \describe{
30-
#' \item{list("mean.X1")}{Numeric value}
31-
#' \item{list("mean.X2")}{Numeric value}
32-
#' \item{list("mean.X3")}{Numeric value}
33-
#' \item{list("mean.X4")}{Numeric value}
34-
#' \item{list("sd.X1")}{Numeric standard deviation value}
35-
#' \item{list("sd.X2")}{Numeric standard deviation value}
36-
#' \item{list("sd.X3")}{Numeric standard deviation value}
37-
#' \item{list("sd.X4")}{Numeric standard deviation value}
38-
#' \item{list("y.B.sum")}{Integer number of patients with event on B treatment}
39-
#' \item{list("y.B.bar")}{Numeric proportion of patients on B treatment}
40-
#' \item{list("N.B")}{Integer Total number of patients on B treatment}
41-
#' \item{list("y.C.sum")}{Integer number of patients with event on C treatment}
42-
#' \item{list("y.C.bar")}{Numeric proportion of patients on C treatment}
43-
#' \item{list("N.C")}{Integer Total number of patients on C treatment}
30+
#' \item{mean.X1}{Numeric value}
31+
#' \item{mean.X2}{Numeric value}
32+
#' \item{mean.X3}{Numeric value}
33+
#' \item{mean.X4}{Numeric value}
34+
#' \item{sd.X1}{Numeric standard deviation value}
35+
#' \item{sd.X2}{Numeric standard deviation value}
36+
#' \item{sd.X3}{Numeric standard deviation value}
37+
#' \item{sd.X4}{Numeric standard deviation value}
38+
#' \item{y.B.sum}{Integer number of patients with event on B treatment}
39+
#' \item{y.B.bar}{Numeric proportion of patients on B treatment}
40+
#' \item{N.B}{Integer Total number of patients on B treatment}
41+
#' \item{y.C.sum}{Integer number of patients with event on C treatment}
42+
#' \item{y.C.bar}{Numeric proportion of patients on C treatment}
43+
#' \item{N.C}{Integer total number of patients on C treatment}
4444
#' }
4545
#' @references Remiro‐Azócar A, Heath A, Baio G (2022)
46-
#'
46+
#' @source Simulated data
4747
#' @keywords datasets
4848
NULL
49+
50+
#' Data set for aggregate level patient data in long format
51+
#'
52+
#' This data set contains summaries of simulated patient covariate and outcome values.
53+
#'
54+
#' @name BC_ALD_long
55+
#' @docType data
56+
#'
57+
#' @format A data frame with 4 variables:
58+
#' \describe{
59+
#' \item{statistic}{A character string}
60+
#' \item{trt}{A factor}
61+
#' \item{value}{A numeric value}
62+
#' \item{variable}{A character string}
63+
#' }
64+
#' @source Simulated data
65+
#' @keywords datasets
66+
NULL

0 commit comments

Comments
 (0)