Returns a summary list for log-linear models fitted by
iterative proportional scaling using `loglm`

.

```
# S3 method for loglm
summary(object, fitted = FALSE, …)
```

object

a fitted loglm model object.

fitted

if `TRUE`

return observed and expected frequencies in the result.
Using `fitted = TRUE`

may necessitate re-fitting the object.

…

arguments to be passed to or from other methods.

a list is returned for use by `print.summary.loglm`

.
This has components

the formula used to produce `object`

the table of test statistics (likelihood ratio, Pearson) for the fit.

if `fitted = TRUE`

, an array of the observed and expected frequencies,
otherwise `NULL`

.

This function is a method for the generic function
`summary()`

for class `"loglm"`

.
It can be invoked by calling `summary(x)`

for an
object `x`

of the appropriate class, or directly by
calling `summary.loglm(x)`

regardless of the
class of the object.

Venables, W. N. and Ripley, B. D. (2002)
*Modern Applied Statistics with S.* Fourth edition. Springer.