Learn R Programming

mdsstat (version 0.3.2)

E2x2: Calculate expected for 2x2 table of observed Returns a vector of expected in the same order as input

Description

Calculate expected for 2x2 table of observed Returns a vector of expected in the same order as input

Usage

E2x2(x)

Arguments

x

Vector of length 4 indicating the values in the 4 cells of the 2x2 table in the order A, B, C, D (across, then down)

Value

Expected values in a vector of length 4, same order as x