sn2ft2x2 {evidence}R Documentation

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

Author(s)

Robert van Hulst

References

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

Examples

sn2ft2x2(c(47, 59), c(120, 125))

[Package evidence version 0.8.10 Index]