View source: R/prepare.functions.R
mbnma.validate.data | R Documentation |
Validates that a dataset fulfills requirements for MBNMA
mbnma.validate.data(data.ab, single.arm = FALSE)
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 ( |
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
An error if checks are not passed. Runs silently if checks are passed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.