Learn R Programming

chisquare (version 1.0)

standardize_table: Produce a standardised table using the Iterative Proportional Fitting method

Description

This ancillary function compute the standardised version of the input cross-tab using the Iterative Proportional Fitting method

Usage

standardize_table(
  table,
  delta = 0.001,
  marginal.type = "average",
  custom.row.totals = NULL,
  custom.col.totals = NULL
)

Value

List containing the cross-tabulation in standardised format and number of iteration.

Arguments

table

Input cross-tabulation.

delta

The desired level of accuracy

marginal.type

The desired marginal type

custom.row.totals

Custom row totals

custom.col.totals

Custom col totals