Fits Goodman's (1979) Model II
Goodman_model_ii(
n,
rho = 1:nrow(n) - (nrow(n) + 1)/2,
sigma = 1:ncol(n) - (ncol(n) + 1)/2,
update_rows = TRUE,
update_columns = TRUE,
max_iter = 25,
verbose = FALSE,
exclude_diagonal = FALSE
)a list containing alpha: row effects beta: column effects rho: centered row locations mu: row locations sigma: centered column locations nu: column locations log_likelihood: log(likelihood) g_squared: G^2 fit measure chisq: X^2 fit measure df: degrees of freedom
matrix of observed counts
values of row locations. Default is 1:nrow(n) - (nrow(n) + 1) / 2
values of column locations. Default is 1:ncol(n) - (ncol(n) + 1) / 2
should values of row locations be updated? Default is TRUE, update
should value of column locations be updated? Default is TRUE, update
maximum number of iterations to perform. Default is 10
should cycle-by-cycle output be produced? Default is FALSE
logical. Should the diagonal be excluded from the computation. Default is FALSE.