Header menu logo FSharp.Stats

Contingency2x2<'R, 'C> Type

A strictly 2×2 contingency table with generic row and column labels.

Constructors

Constructor Description

Contingency2x2(rowKeys, colKeys, counts)

Full Usage: Contingency2x2(rowKeys, colKeys, counts)

Parameters:
    rowKeys : 'R * 'R
    colKeys : 'C * 'C
    counts : int * int * int * int

Returns: Contingency2x2<'R, 'C>
rowKeys : 'R * 'R
colKeys : 'C * 'C
counts : int * int * int * int
Returns: Contingency2x2<'R, 'C>

Instance members

Instance member Description

this.A

Full Usage: this.A

Returns: int

Cell a = (r1,c1)

Returns: int

this.B

Full Usage: this.B

Returns: int

Cell b = (r1,c2)

Returns: int

this.C

Full Usage: this.C

Returns: int

Cell c = (r2,c1)

Returns: int

this.Col1

Full Usage: this.Col1

Returns: 'C

First column label

Returns: 'C

this.Col2

Full Usage: this.Col2

Returns: 'C

Second column label

Returns: 'C

this.D

Full Usage: this.D

Returns: int

Cell d = (r2,c2)

Returns: int

this[row, col]

Full Usage: this[row, col]

Parameters:
    row : 'R
    col : 'C

Returns: int

Index by labels

row : 'R
col : 'C
Returns: int

this[i, j]

Full Usage: this[i, j]

Parameters:
    i : int
    j : int

Returns: int

Index by zero‐based coordinates 0..1 × 0..1

i : int
j : int
Returns: int

this.OddsRatio

Full Usage: this.OddsRatio

Returns: float

Odds ratio = (a·d)/(b·c)

Returns: float

this.Row1

Full Usage: this.Row1

Returns: 'R

First row label

Returns: 'R

this.Row2

Full Usage: this.Row2

Returns: 'R

Second row label

Returns: 'R

Type something to start searching.