Skip to contents

[Stable]

Function for generating a random EORTC QLQ-C30 V3 Analysis Dataset for a given Subject-Level Analysis Dataset.

Usage

radqlqc(adsl, percent, number, seed = NULL, cached = FALSE)

Arguments

adsl

(data.frame)
Subject-Level Analysis Dataset (ADSL).

percent

(numeric)
Completion - Completed at least y percent of questions, 1 record per visit

number

(numeric)
Completion - Completed at least x question(s), 1 record per visit

seed

(numeric)
Seed to use for reproducible random number generation.

cached

boolean whether the cached ADQLQC data cadqlqc should be returned or new data should be generated. If set to TRUE then the other arguments to radqlqc will be ignored.

Value

data.frame

Details

Keys: STUDYID, USUBJID, PARCAT1N, PARAMCD, BASETYPE, AVISITN, ATPTN, ADTM, QSSEQ

Examples

library(random.cdisc.data)
adsl <- radsl(N = 10, study_duration = 2, seed = 1)

adqlqc <- radqlqc(adsl, seed = 1, percent = 80, number = 2)
adqlqc
#> # A tibble: 2,860 × 50
#>    STUDYID USUBJID   SUBJID SITEID   AGE AGEU  SEX   RACE  ETHNIC COUNTRY TRT01P
#>    <chr>   <chr>     <chr>  <chr>  <int> <fct> <fct> <fct> <fct>  <fct>   <fct> 
#>  1 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#>  2 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#>  3 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#>  4 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#>  5 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#>  6 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#>  7 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#>  8 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#>  9 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#> 10 AB12345 AB12345-… id-9   BRA-1     35 YEARS F     BLAC… UNKNO… BRA     C: Co…
#> # ℹ 2,850 more rows
#> # ℹ 39 more variables: TRT01A <fct>, REGION1 <fct>, ITTFL <fct>, SAFFL <fct>,
#> #   TRTSDTM <dttm>, TRTEDTM <dttm>, QSSEQ <int>, QSCAT <fct>, QSSCAT <fct>,
#> #   QSDTC <dttm>, QSSTAT <fct>, QSSTRESC <fct>, QSSTRESU <fct>, QSORRES <fct>,
#> #   QSORRESU <fct>, QSTEST <fct>, QSTESTCD <fct>, QSREASND <fct>,
#> #   QSEVLINT <fct>, VISIT <fct>, VISITNUM <int>, ASEQ <int>, PARAM <fct>,
#> #   PARAMCD <fct>, PARCAT1 <fct>, PARCAT1N <dbl>, PARCAT2 <fct>, AVAL <dbl>, …