margin_sums: Calculate Margin Sums for a Contingency Table

View source: R/dx_tests.R

margin_sumsR Documentation

Calculate Margin Sums for a Contingency Table

Description

Calculates the row and column sums for each 2x2 stratum of the contingency table.

Usage

margin_sums(stratum_data)

Arguments

stratum_data

A 2x2 matrix representing a single stratum of the contingency table.

Value

A list with 'row' and 'col' elements containing the sums of rows and columns, respectively.


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