IDEAS home Printed from https://ideas.repec.org/a/csb/stintr/v13y2012i2p311-320.html
   My bibliography  Save this article

Independence analysis of nominal data with the use of log-linear models in R

Author

Listed:
  • Justyna Brzezińska

Abstract

Log-linear models are used to analyze the relationship between two or more categorical (e.g. nominal or ordinal) variables. The term log-linear derives from the fact that one can, through logarithmic transformations, restate the problem of analyzing multi-way frequency tables in terms that are very similar to ANOVA. Specifically, one may think of the multi-way frequency table to reflect various main effects and interaction effects that add together in a linear fashion to bring about the observed table of frequencies. There are several types of models between dependence and independence: homogenous association, partial association, conditional association and null model. Expected cell frequencies are obtained with the use of iterative proportional fitting algorithm (IPF) [Deming, Stephen 1940]. The next step is to derive model coefficients for single variables as well as for interaction parameter and the most useful tool for interpreting model parameter is odds and odds ratio. Log-linear models are available in R software with the use of loglm function in MASS library and glm function in stats library. In this paper log-linear analysis will be presented with the use of available packages on empirical datasets in economic area.

Suggested Citation

  • Justyna Brzezińska, 2012. "Independence analysis of nominal data with the use of log-linear models in R," Statistics in Transition new series, Główny Urząd Statystyczny (Polska), vol. 13(2), pages 311-320, June.
  • Handle: RePEc:csb:stintr:v:13:y:2012:i:2:p:311-320
    as

    Download full text from publisher

    File URL: http://index.stat.gov.pl/repec/files/csb/stintr/csb_stintr_v_2012_i2_n9.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Meyer, David & Zeileis, Achim & Hornik, Kurt, 2006. "The Strucplot Framework: Visualizing Multi-way Contingency Tables with vcd," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 17(i03).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Yee, Thomas W., 2010. "The VGAM Package for Categorical Data Analysis," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 32(i10).
    2. Matthias Templ & Andreas Alfons & Peter Filzmoser, 2012. "Exploring incomplete data using visualization techniques," Advances in Data Analysis and Classification, Springer;German Classification Society - Gesellschaft für Klassifikation (GfKl);Japanese Classification Society (JCS);Classification and Data Analysis Group of the Italian Statistical Society (CLADAG);International Federation of Classification Societies (IFCS), vol. 6(1), pages 29-47, April.
    3. Pilhöfer, Alexander & Unwin, Antony, 2013. "New Approaches in Visualization of Categorical Data: R Package extracat," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 53(i07).
    4. repec:jss:jstsof:28:i08 is not listed on IDEAS
    5. Cook, Dianne & Hofmann, Heike, 2011. "R Graphics (2nd Edition)," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 43(b03).
    6. repec:jss:jstsof:32:i10 is not listed on IDEAS
    7. Heiberger, Richard & Robbins, Naomi, 2014. "Design of Diverging Stacked Bar Charts for Likert Scales and Other Applications," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 57(i05).
    8. Hothorn, Torsten & Hornik, Kurt & van de Wiel, Mark A. & Zeileis, Achim, 2008. "Implementing a Class of Permutation Tests: The coin Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 28(i08).
    9. Brzezińska Justyna, 2018. "Visualization of Categorical Data Using Extracat Package in R," Econometrics. Advances in Applied Data Analysis, Sciendo, vol. 22(2), pages 9-19, June.
    10. Andreas Alfons & Stefan Kraft & Matthias Templ & Peter Filzmoser, 2011. "Simulation of close-to-reality population data for household surveys with application to EU-SILC," Statistical Methods & Applications, Springer;Società Italiana di Statistica, vol. 20(3), pages 383-407, August.
    11. Pavlo Maksimov & Johannes Zerweck & Jitender P Dubey & Nikola Pantchev & Caroline F Frey & Aline Maksimov & Ulf Reimer & Mike Schutkowski & Morteza Hosseininejad & Mario Ziller & Franz J Conraths & Ge, 2013. "Serotyping of Toxoplasma gondii in Cats (Felis domesticus) Reveals Predominance of Type II Infections in Germany," PLOS ONE, Public Library of Science, vol. 8(11), pages 1-1, November.
    12. Monira Hamid & Christopher Thron & Sallam Fageeri, 2021. "Demographics of Sudanese University Students in Relation to Regional Conflict and Underdevelopment," Social Sciences, MDPI, vol. 10(3), pages 1-33, March.
    13. Klusáček, Petr & Navrátil, Josef & Martinát, Stanislav & Krejčí, Tomáš & Golubchikov, Oleg & Pícha, Kamil & Škrabal, Jaroslav & Osman, Robert, 2021. "Planning for the future of derelict farm premises: From abandonment to regeneration?," Land Use Policy, Elsevier, vol. 102(C).
    14. Zeileis, Achim & Hornik, Kurt & Murrell, Paul, 2009. "Escaping RGBland: Selecting colors for statistical graphics," Computational Statistics & Data Analysis, Elsevier, vol. 53(9), pages 3259-3270, July.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:csb:stintr:v:13:y:2012:i:2:p:311-320. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Beata Witek (email available below). General contact details of provider: https://edirc.repec.org/data/gusgvpl.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.