Description Usage Arguments Details Value Author(s)
View source: R/quality_indicators.R
Calculates the different data quality indicators regarding missing data and invalid data from ANC-RT data.
1 | quality_indicators(data, by_region = FALSE, by_time = FALSE)
|
data |
The ANC-RT dataset. The functions check_data and data_clean should have been run on the data to properly prepare the data for use here. The data set must have the following variables:
|
by_region |
TRUE or FALSE to indicate whether the data quality indicators be calculated stratified by |
by_time |
TRUE or FALSE to indicate whether the data quality indicators be calculated stratified by |
This function was designed to calculate 16 data quality indicators from ANC-RT data. The amount of missing data and invalid data for the
five primary variables used to calculate HIV testing coverage and HIV prevalence (i.e. n_clients
, n_status
, testpos
,
testneg
and, knownpos
) are calculated and output in a dataframe. Data quality indicators are calculated from both raw and cleaned
variables and can be calculated stratified by region and time, according to user inputs.
A table (in dataframe format) with all data quality indicators calculated for the raw and cleaned data. If specified, data quality
indicators are also displayed stratified by snu1
and/or time
. The 16 data quality indicators include:
The number and % of facilities that don't report all quarters
The number and % of observations with missing data for n_clients
The number and % of observations with missing data for n_status
The number and % of observations with missing data for testpos
The number and % of observations with missing data for testneg
The number and % of observations with missing data for knownpos
The number and % of observations with missing data for at least one of n_clients
, n_status
, or totpos
The number and % of observations with n_status
> n_clients
The number and % of observations with n_status
< totpos
The number and % of observations with n_status
< (testpos
+ testneg
+ knownpos
)
The number and % of observations with negative values for n_clients
The number and % of observations with negative values for n_status
The number and % of observations with negative values for testpos
The number and % of observations with negative values for testneg
The number and % of observations with negative values for knownpos
The number and % of observations with invalid data for at least one of n_clients
, n_status
, testpos
, or knownpos
Mathieu Maheu-Giroux
Brittany Blouin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.