Learn R Programming

ordinalTables (version 1.0.0.3)

Ireland_marginal_homogeneity: Fits marginal homogeneity model

Description

Fits the marginal homogeneity model according to the minimum discriminant information. Ireland, C. T., Ku, H. H., & Kullback, S. (1969). Symmetry and marginal homogeneity of an r × r contingency table. Journal of the American Statistical Association, 64(328), 1323-1341.

Usage

Ireland_marginal_homogeneity(
  n,
  truncated = FALSE,
  max_iter = 15,
  verbose = FALSE
)

Value

a list containing mdis: value of the minimum discriminant information statistic (appox chi-squared) df: dgrees of freedom x_star: matrix of model-based counts p_star: matrix of model-based p-values

Arguments

n

matrix of observed counts

truncated

should the diagonal be excluded. Default is FALSE, include the diagonal.

max_iter

maximum number of iterations to perform

verbose

should cycle-by-cycle information be printed out. Default is FALSE.

Examples

Run this code
Ireland_marginal_homogeneity(vision_data)

Run the code above in your browser using DataLab