Ireland_quasi_symmetry_model: Fitss the quasi-symmetry model.
Description
Fits the model according to the MDIS criterion.
Usage
Ireland_quasi_symmetry_model(
n,
truncated = FALSE,
max_iter = 5,
verbose = FALSE
)
Value
a list containing
mdis: value of the MDIS at termination
df: degrees of freedom
x_star: matrix of model-reproduced counts
p_star: matrix of model-reproduced p-values
Arguments
- n
matrix of observed counts
- truncated
should the diagonal be excluded. Default is FALSE, include diagonal cells.
- max_iter
maximum number of iterations in minimizing the criterion. Default is 4
- verbose
logical variable, should cycle-by-cycle info be printed. Defaullt is FALSE.
See Also
[Ireland_quasi_symmetry()]
Examples
Run this codeIreland_quasi_symmetry_model(vision_data)
Run the code above in your browser using DataLab