Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summary.loglm

Summary Method Function for Objects of Class 'loglm'


Description

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

Usage

## S3 method for class '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

formula

the formula used to produce object

tests

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

oe

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


MASS

Support Functions and Datasets for Venables and Ripley's MASS

v7.3-54
GPL-2 | GPL-3
Authors
Brian Ripley [aut, cre, cph], Bill Venables [ctb], Douglas M. Bates [ctb], Kurt Hornik [trl] (partial port ca 1998), Albrecht Gebhardt [trl] (partial port ca 1998), David Firth [ctb]
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.