View source: R/PrepCalibration.r
| prepCalibration | R Documentation |
This function prepares the output from codeVA (using the InSilicoVA or InterVA5 algorithms) and/or EAVA for the vacalibration function. The output is a named list, with each element consisting of a data frame with columns for the death ID ("ID") and the assigned CoD ("cause"). The name of each element is the algorithm used to assign the CoD – "insilicova", "interva", or "eava". If the
prepCalibration(fit, ...)
fit |
a fitted object from |
... |
more fitted objects from |
a list with each element being a Data Frames that contains variables "ID" and "cause", and the element's name (in the list) is the algorithm name used to assign causes of death (either "insilicova", "interva", or "eava")
## Not run:
data(NeonatesVA5)
fit_insilico <- codeVA(NeonatesVA5)
insilico_prep <- prepCalibration(fit_insilico)
calib_insilico = vacalibration::vacalibration(va_data = insilico_prep,
age_group = "neonate",
country = "Mozambique")
summary(calib_insilico)
fit_interva <- codeVA(NeonatesVA5, model = "InterVA", version = "5", write = FALSE)
interva_prep <- prepCalibration(fit_interva)
calib_interva = vacalibration::vacalibration(va_data = interva_prep,
age_group = "neonate",
country = "Mozambique")
summary(calib_interva)
two_fits <- prepCalibration(fit_insilico, fit_interva)
calib_ensemble = vacalibration::vacalibration(va_data = two_fits,
age_group = "neonate",
country = "Mozambique")
summary(calib_ensemble)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.