# summary.loglm

##### Summary Method Function for Objects of Class 'loglm'

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

.

- Keywords
- models

##### Usage

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

##### Arguments

- 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.

##### Details

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.

##### Value

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`

.

##### References

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

##### See Also

*Documentation reproduced from package MASS, version 7.3-51.1, License: GPL-2 | GPL-3*