Description Usage Arguments Examples
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.
This function will take two numbers: pos
and ntot
, respectfully depicting the amount of positives and the total amount of individuals, and transform it into binary data. The result is a vector of length ntot
with pos
amount of ones and ntot-pos
amount of zeros.
1 | sumup2binom(pos, ntot)
|
pos |
The amount of successes out of “tot” trials. |
ntot |
The total amount of trials. |
1 2 3 4 5 | pos <- 3
ntot <- 10
res <- sumup2binom(pos, ntot)
res
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.