calculate_performance: Calculate CMAM performance indicators

View source: R/performance.R

calculate_performanceR Documentation

Calculate CMAM performance indicators

Description

Calculate CMAM performance indicators

Usage

calculate_performance(.data, vars = NULL, add = TRUE)

Arguments

.data

A data.frame containing programme monitoring data on number of cured, deaths, defaulters and non-response. The required data.frame holds rows of data corresponding to total counts for each performance indicator (i.e., cured, dead, defaulter and non-responder) rather than rows of individual cases.

vars

A vector of variable names specifying cured, dead, defaulter and non-responder (in this specific order) values in .data. If NULL (default), typical names used for these variables will be searched and used accordingly. If search doesn't yield matching variable names, the first 4 columns of the data.frame will be used.

add

Logical. Should result be added to .data. Default is TRUE.

Value

A tibble of performance indicator results

Author(s)

Ernest Guevarra

Examples

calculate_performance(.data = monitoring)


rapidsurveys/squeacr documentation built on April 26, 2024, 1:08 a.m.