Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: St: loglinear analysis of contingency tables
From
Nick Cox <[email protected]>
To
[email protected]
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
Nick
On Thu, Jan 24, 2013 at 4:05 PM, Ronald McDowell
<[email protected]> 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:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/