Learn R Programming

ordinalTables (version 1.0.0.3)

McCullagh_conditional_symmetry: Fits the McCullagh (1978) conditional-symmetry model.

Description

McCullagh, P. (1978). A class of parametric models for the analysis of square contingency tables with ordered categories. Biometrika, 65(2) 413-418.

Usage

McCullagh_conditional_symmetry(n, max_iter = 5, verbose = FALSE)

Value

a list containing theta: the asymmetry parameter chisq: chi-square g_squared: likelihood ratio G^2 df: degrees of freedom

Arguments

n

matrix of observed counts

max_iter

maximum number of iterations to maximize the log(likelihood)

verbose

should cycle-by-cycle info be printed. Default is FALSE.

Examples

Run this code
McCullagh_conditional_symmetry(vision_data)

Run the code above in your browser using DataLab