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

Description Usage Arguments Value Author(s) References Examples

View source: R/sn2ft2x2.R

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

1
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

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

evidence documentation built on May 2, 2019, 2:14 p.m.