Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: St: loglinear analysis of contingency tables

From   Nick Cox <>
Subject   Re: st: St: loglinear analysis of contingency tables
Date   Thu, 24 Jan 2013 16:14:12 +0000

I don't understand the reluctance, but it can be done. Something like

sysuse auto, clear
bysort foreign rep78 : gen count = _N
bysort foreign rep78 : gen tag = _n == 1
poisson count i.foreign i.rep78 if tag


On Thu, Jan 24, 2013 at 4:05 PM, Ronald McDowell
<> wrote:

> I'm looking to fit a loglinear model to a 2x2 contingency table using the glm/poisson/log command/options. I don't want to collapse the data into the cell frequencies but retain all data at the individual level. How do I get started? For some reason I'm having a blank today.

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index