- tab
a three-way table, or an object (such as a matrix) that can be coerced into a table;
if present, dimensions above three will be collapsed.
- nd
the number of dimensions to include in the model. Cannot exceed
min(nrow(tab) - 1, ncol(tab) - 1)
if symmetric
is FALSE
(saturated model),
and twice this threshold otherwise (quasi-symmetry model).
- layer.effect
determines the form of the interaction between row-column association and layers.
See “Details” below.
- symmetric
should row and column scores be constrained to be equal? Valid only for square tables.
- diagonal
what type of diagonal-specific parameters to include in the model, if any. This amounts to
taking quasi-conditional independence, rather than conditional independence, as the baseline model.
Valid only for square tables.
- weighting
what weights should be used when normalizing the scores.
- se
which method to use to compute standard errors for parameters.
- nreplicates
the number of bootstrap replicates, if enabled.
- ncpus
the number of processes to use for jackknife or bootstrap parallel computing. Defaults to
the number of cores (see detectCores
), with a maximum of 5, but falls back to 1
(no parallelization) if package parallel
is not available.
- family
a specification of the error distribution and link function
to be used in the model. This can be a character string naming
a family function; a family function, or the result of a call
to a family function. See family
details of family functions.
- weights
an optional vector of weights to be used in the fitting process.
- start
either NA
to use optimal starting values, NULL
to use
random starting values, or a vector of starting values for the parameters in the model.
- etastart
starting values for the linear predictor; set to NULL
to use either default
starting values (if start = NA
), or random starting values (in all other cases).
- tolerance
a positive numeric value specifying the tolerance level for
convergence; higher values will speed up the fitting process, but beware of numerical
instability of estimated scores!
- iterMax
a positive integer specifying the maximum number of main iterations to perform;
consider raising this value if your model does not converge.
- eliminate
either NULL
(the default) to estimate all parameters, NA
to skip the estimation of some parameters for increased efficiency, or the name of a
factor to be passed as gnm
's corresponding argument.
- trace
a logical value indicating whether the deviance
should be printed after each iteration.
- verbose
a logical value indicating whether progress indicators should be printed,
including a diagnostic error message if the algorithm restarts.
- ...
more arguments to be passed to gnm