imputation-reports: Functions to Report on Imputation Activity

Description Usage Arguments Value See Also

Description

Functions to plot a worldmap of available and missing data; to summarize imputation results; to calculate total (ie, raw+imputed) cases; and to generate a PDF report of the imputation activity.

Usage

1
2
3
4
5
6
7
8
plot_missing(inc, WHOsub, agent, agent_full, save = FALSE)

summarize_imputation(db, db_imputed)

get_total_cases(db_merged, pop)

imputation_report(db, db_imputed, db_merged, pop, agent, agent_full,
                  tab1_options = NULL, tab2_options = NULL)

Arguments

inc

vector of mean raw incidences

WHOsub

vector of WHO subregions

agent

agent name, abbreviated

agent_full

agent name, full

save

logical flag; should image be saved?

db_merged

merged data frame

pop

vector of population size by country (*1e5)

db

raw data frame

db_imputed

imputed data frame

tab1_options

list of formatting options for tables of absolute numbers

tab2_options

list of formatting options for tables of rates

Value

get_total_cases returns a data frame with WHO subregion; mean, median, 2.5th percentile, 97.5th percentile, and standard deviation of overall subregional number of cases; and subregional population size. summarize_imputation returns a list of regional fit; global geometric mean; within-region variance; and between-region variance.plot_missing creates a PNG file (if save = FALSE); imputation_report generates a PDF file.

See Also

imputation-functions for main imputation functions.


brechtdv/FERG2015 documentation built on May 13, 2019, 5:05 a.m.