Last chance! 50% off unlimited learning
Sale ends in
Last chance! 50% off unlimited learning
Sale ends in
Internal functions used by radqlqc
.
get_qs_data(
adsl,
visit_format = "CYCLE",
n_assessments = 5L,
n_days = 1L,
lookup = NULL,
seed = NULL,
na_percentage = 0,
na_vars = list(QSORRES = c(1234, 0.2), QSSTRESC = c(1234, 0.2))
)get_random_dates_between(from, to, visit_id)
prep_adqlqc(df)
calc_scales(adqlqc1)
derv_chgcat1(dataset)
comp_derv(dataset, percent, number)
a dataframe with SDTM questionnaire data
Data frame with new randomly generated dates variable.
data.frame
data.frame
data.frame
data.frame
(data.frame
)
Subject-Level Analysis Dataset (ADSL).
(character
)
Type of visit. Options are "WEEK" and "CYCLE".
(integer
)
Number of weeks or cycles.
(integer
)
Number of days in each cycle (only used if visit_format
is "CYCLE").
(data.frame
)
Additional parameters.
(numeric
)
Seed to use for reproducible random number generation.
(proportion
)
Default percentage of values to be replaced by NA
.
(list
)
A named list where the name of each element is a column name of ds
. Each
element of this list should be a numeric vector with two elements:
seed
(numeric
)
The seed to be used for this element - can be NA
.
percentage
(proportion
)
Percentage of elements to be replaced with NA
.
If NA
, na_percentage
is used as a default.
(datetime vector
)
Start date/times.
(datetime vector
)
End date/times.
(vector
)
Visit identifiers.
(data.frame
)
SDTM QS dataset.
(data.frame
)
Prepared data generated from the prep_adqlqc()
function.
(data.frame
)
Dataset.
(numeric
)
Completion - Completed at least y percent of questions, 1 record per visit
(numeric
)
Completion - Completed at least x question(s), 1 record per visit
get_qs_data()
: Questionnaires EORTC QLQ-C30 V3.0 SDTM (QS)
Function for generating random Questionnaires SDTM domain
get_random_dates_between()
: Function for generating random dates between 2 dates
prep_adqlqc()
: Prepare ADaM ADQLQC data, adding PARAMCD to SDTM QS data
calc_scales()
: Scale calculation for ADQLQC data
derv_chgcat1()
: Calculate Change from Baseline Category 1
comp_derv()
: Completion/Compliance Data Calculation
adsl <- radsl(N = 10, study_duration = 2, seed = 1)
adqlqc <- radqlqc(adsl, seed = 1, percent = 80, number = 2)
Run the code above in your browser using DataLab