Learn R Programming

ordinalTables (version 1.0.0.3)

Goodman_model_i: Fits Goodman's (1979) Model I

Description

Fits Goodman's (1979) Model I

Usage

Goodman_model_i(
  n,
  row_effects = TRUE,
  column_effects = TRUE,
  max_iter = 25,
  verbose = FALSE,
  exclude_diagonal = FALSE
)

Value

a list containing alpha: row effects beta: column effects gamma: row location weights delta: column location weights log_likelihood: log(likelihood) g_squared: G^2 fit measure chisq: X^2 fit measure df: degrees of freedom

Arguments

n

matrix of observed counts

row_effects

should row effects be included in the model? Default is TRUE

column_effects

should column effects be included in the model? Default is TRUE

max_iter

maximum number of iterations. Default is 10

verbose

logical. Should cycle-by-cycle output be printed? Default is no

exclude_diagonal

logical. For square tables, should the cells on the diagonal be excluded? Default is FALSE, include all cells