Fit Log-Linear Models by Iterative Proportional Scaling -- Internal function
loglm1 is an internal function used by
It is a generic function dispatching on the
loglm1(formula, data, …)
# S3 method for xtabs loglm1(formula, data, …)
# S3 method for data.frame loglm1(formula, data, …)
# S3 method for default loglm1(formula, data, start = rep(1, length(data)), fitted = FALSE, keep.frequencies = fitted, param = TRUE, eps = 1/10, iter = 40, print = FALSE, …)
A linear model formula specifying the log-linear model. See
loglmfor its interpretation.
Numeric array or data frame. In the first case it specifies the array of frequencies; in then second it provides the data frame from which the variables occurring in the formula are preferentially obtained in the usual way.
This argument may also be the result of a call to
- start, param, eps, iter, print
Arguments passed to
logical: should the fitted values be returned?
TRUEspecifies that the (possibly constructed) array of frequencies is to be retained as part of the fitted model object. The default action is to use the same value as that used for
arguments passed to the default method.
An object of class