mbnma.validate.data {MBNMAdose} | R Documentation |
Validates that a dataset fulfills requirements for MBNMA
Description
Validates that a dataset fulfills requirements for MBNMA
Usage
mbnma.validate.data(data.ab, single.arm = FALSE)
Arguments
data.ab |
A data frame of arm-level data in "long" format containing the columns:
|
single.arm |
A boolean object to indicate whether to allow single arm studies in the dataset ( |
Details
Checks done within the validation:
Checks data.ab has required column names
Checks there are no NAs
Checks that all SEs are >0 (if variables are included in dataset)
Checks that all doses are >=0
Checks that all r and n are positive (if variables are included in dataset)
Checks that all y, se, r, n and E are numeric
Checks that class codes are consistent within each agent
Checks that agent/class names do not contain restricted characters
Checks that studies have at least two arms (if
single.arm = FALSE
)Checks that each study includes at least two treatments
Checks that agent names do not include underscores
Checks that standsd values are consistent within a study
Value
An error if checks are not passed. Runs silently if checks are passed