Goodman_fixed_parameter: Fits the model with given parameters fixed to specific values.
Description
The model has simple closed form solutions when fitting either the unconstrained
version of the version that species equality of delta parameters. However,
I could not see how to adapt that to the case where specific parameters were
constrained to have a specific value. This routine is to fit that model. It will
also fit the unconstrained model, but Goodman gives the estimator for that case.
list containing phi, delta,
max_change largest change in parameter for last the iteration,
chisq: Pearson chi-square
g_squared: likelihood ratio G^2
df: degrees of freedom
Arguments
n
the r X r matrix of observed counts
delta
the vector of asymmetry r - 1 parameters
fixed
r - 1 logical vector that specifies whether a delta parameter is fixed
(TRUE) or allowed to be estimated (FALSE).
convergence
maximum change in a parameter across iterations. Default is 1.0e-4
max_iter
maximum number of iterations, Default is 50.
verbose
should progress information be printed to the console. Default is
FALSE, do not print.