Skip to main content

Log-Linear Models

  • Chapter
Graphical Models with R

Part of the book series: Use R! ((USE R))

  • 13k Accesses

Abstract

This chapter describes graphical models for multivariate discrete (categorical) data. It starts out by describing various different ways in which such data may be represented in R—for example, as contingency tables—and how to convert between these representations. It then gives a concise exposition of the theory of hierarchical log-linear models, with illustrative examples using the gRim package. Topics covered include log-linear model formulae, dependence graphs, graphical and decomposable models, maximum likelihood estimation using the IPS algorithm, and hypothesis testing. Model selection is briefly discussed and illustrated using a stepwise algorithm. Graphical modeling is particularly useful for multi-dimensional tables, and since these are often sparse, it is necessary to adjust the degrees of freedom as normally calculated. Other topics treated in the chapter include exact conditional tests, ordinal categorical variables, and a comparison of fitting log-linear models using IPS and the glm algorithms. A final section describes some utilities for working with the models.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  • Akaike H (1974) A new look at the statistical identification problem. IEEE Trans Autom Control 19:716–723

    Article  MathSciNet  MATH  Google Scholar 

  • Badsberg JH (1991) A guide to CoCo. Tech rep. R-91-43. Department of Mathematics and Computer Science, Aalborg University

    Google Scholar 

  • Bishop YMM, Fienberg SE, Holland PW (1975) Discrete multivariate analysis: theory and practice. MIT Press, Cambridge

    MATH  Google Scholar 

  • Edwards D (2000) Introduction to graphical modelling, 2nd edn. Springer, New York

    Book  MATH  Google Scholar 

  • Grizzle JE, Starmer CF, Koch GG (1969) Analysis of categorical data by linear models. Biometrics 25(3):489–504

    Article  MathSciNet  MATH  Google Scholar 

  • Reiniš Z, Pokorný J, Bazika V, Tišerová J, Goričan K, Horáková D, Stuchlíková E, Havránek T, Hrabovský F (1981) Prognostický význam rizikového profilu v prevenci ischemické choroby srdce. Bratisl Lek Listy 76:137–150

    Google Scholar 

  • Ripley BD (1996) Pattern recognition and neural networks. Cambridge University Press, Cambridge

    MATH  Google Scholar 

  • Schoener TW (1968) The Anolis lizards of Bimini: resource partitioning in a complex fauna. Ecology 49:704–726

    Article  Google Scholar 

  • Schwarz G (1978) Estimating the dimension of a model. Ann Math Stat 6:461–464

    MATH  Google Scholar 

  • Whittaker J (1990) Graphical models in applied multivariate statistics. Wiley, Chichester

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer Science+Business Media, LLC

About this chapter

Cite this chapter

Højsgaard, S., Edwards, D., Lauritzen, S. (2012). Log-Linear Models. In: Graphical Models with R. Use R!. Springer, Boston, MA. https://doi.org/10.1007/978-1-4614-2299-0_2

Download citation

Publish with us

Policies and ethics