binom2sumup: Convert from Binomial Data to Sum-up Data

Description Usage Arguments Examples

Description

This function will take binary data (a vector filled with zeros and ones) and transform it into two numbers: pos and ntot, respectfully depicting the amount of positives and the total amount of individuals.

Usage

1

Arguments

data

The binary data that needs to be summed up.

Examples

1
2
3
4
5
# Generate binary data
data <- rbinom(10, 1, 0.5)

res <- binom2sumup(data)
res

TeaKov/serostat documentation built on May 21, 2019, 1:21 p.m.