variance_a: Calculate Variance of Cell Count

View source: R/dx_tests.R

variance_aR Documentation

Calculate Variance of Cell Count

Description

Calculates the variance of the top left cell (a) count under the null hypothesis of homogeneity of odds ratios across strata.

Usage

variance_a(tilde_a_value, marginals)

Arguments

tilde_a_value

The expected count for cell 'a' in a single stratum.

marginals

A list containing the 'row' and 'col' marginal sums for the stratum.

Value

The variance of the count for cell 'a'.


overdodactyl/diagnosticSummary documentation built on Jan. 28, 2024, 10:07 a.m.