Learn R Programming

evidence (version 0.8.10)

sn2ft2x2: Conversion of 2 props input to 2x2 contingency table

Description

This function converts the successes and totals vectors required as input for function B2props to a 2x2 contingency table for input to CTA or Bft2x2.

Usage

sn2ft2x2(s, n)

Arguments

s

a vector of length 2 of successes

n

a vector of length 2 of numbers of trials

Value

a 2 x 2 contingency table equivalent to the two arguments

References

van Hulst, R. 2018. Evaluating Scientific Evidence. ms.

Examples

Run this code
# NOT RUN {
sn2ft2x2(c(47, 59), c(120, 125))
# }

Run the code above in your browser using DataLab