\HeaderA{loglm1}{Fit Log-Linear Models by Iterative Proportional Scaling -- Internal function}{loglm1}
\methaliasA{loglm1.data.frame}{loglm1}{loglm1.data.frame}
\methaliasA{loglm1.default}{loglm1}{loglm1.default}
\methaliasA{loglm1.xtabs}{loglm1}{loglm1.xtabs}
\keyword{internal}{loglm1}
\begin{Description}\relax
\code{loglm1} is an internal function used by \code{\LinkA{loglm}{loglm}}.
It is a generic function dispatching on the \code{data} argument.
\end{Description}
\begin{Usage}
\begin{verbatim}
loglm1(formula, data, ...)

## S3 method for class 'xtabs':
loglm1(formula, data, ...)

## S3 method for class 'data.frame':
loglm1(formula, data, ...)

## Default S3 method:
loglm1(formula, data, start = rep(1, length(data)), fitted = FALSE,
       keep.frequencies = fitted, param = TRUE, eps = 1/10,
       iter = 40, print = FALSE, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{formula}] A linear model formula specifying the log-linear model.
See \code{\LinkA{loglm}{loglm}} for its interpretation.
\item[\code{data}] 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 \code{\LinkA{xtabs}{xtabs}}.

\item[\code{start, param, eps, iter, print}] Arguments passed to
\code{\LinkA{loglin}{loglin}}.
\item[\code{fitted}] logical: should the fitted values be returned?
\item[\code{keep.frequencies}] If \code{TRUE} specifies 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 \code{fitted}.

\item[\code{...}] arguments passed to the default method.
\end{ldescription}
\end{Arguments}
\begin{Value}
An object of class \code{"loglm"}.
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{loglm}{loglm}}, \code{\LinkA{loglin}{loglin}}
\end{SeeAlso}

