Skip to contents

cs_sum() calculates the proportion of the organization that falls within the specified group. Variables are joined with &; not specifiying a variable (or setting it to NULL) includes all of its values.

Usage

cs_sum(dt, vac = NULL, inf = NULL, symp = NULL, test = NULL, detect = NULL)

Arguments

dt

[data.table] A distribution from cs_dist()

vac, inf, symp, test, detect

[logical(1)] Variables values specifying which sub-group to sum over. If NULL, will sum over all values.

Value

[double(1)] The proportion of the organization with all the specified characteristics