Learn R Programming

ordinalTables (version 1.0.0.3)

Goodman_model_ii_star: Fits Goodman's (1979) model II*, where row and column effects are equal.

Description

Fits Goodman's (1979) model II*, where row and column effects are equal.

Usage

Goodman_model_ii_star(
  n,
  exclude_diagonal = FALSE,
  max_iter = 25,
  verbose = FALSE
)

Value

a list containing alpha: vector of alpha (row) parameters beta: vector of beta (column) parameters phi: vector of common row/column effects log_likelihood: value of the log(likelihood) function at completion g_squared: G^2 fit measure chisq: X^2 fit measure df: degrees of freedom

Arguments

n

matrix of observed counts

exclude_diagonal

should the cells of the main diagonal be excluded? Default is FALSE, include all cells

max_iter

maximum number of iterations

verbose

should cycle-by-cycle information be printed out? Default is FALSE, do not print