JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for ALLSTAT Archives


ALLSTAT Archives

ALLSTAT Archives


allstat@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Monospaced Font

LISTSERV Archives

LISTSERV Archives

ALLSTAT Home

ALLSTAT Home

ALLSTAT  2002

ALLSTAT 2002

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Summary of replies to Poisson equivalent of Paired t-test

From:

Neil Walker <[log in to unmask]>

Reply-To:

Neil Walker <[log in to unmask]>

Date:

Fri, 27 Sep 2002 16:18:07 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (274 lines)

Hello Allstat,

I had many replies to this query - a selection is listed below. For those
interested, the proposed study which motivated the question would involve
observing no. of road accidents in London on an "exposed" tube strike day as
compared with a "paired & unexposed" day (ie one week before or after or
both). Data is available for 4 tube strike days (and correspondingly for
paired days). The hypothesis, in case you haven't guessed, is that more
accidents occur on days of tube strikes.

I'm not requesting a reply here, but thought it would be of academic
interest to some of those who replied. Of course, if you feel that the
original approach was fundamentally flawed, then please feel free to point
out!

Many thanks to everyone who replied,

Neil Walker



ORIGINAL QUERY:
Hello Allstat,
An apparently simple question. Does anyone know of a parallel to the
paired t-test where the data is in the form of counts and I assume Poissonly
distributed? I've found no direct reference from my limited library or from
googling. Any comments would be much appreciated.

Thanks in advance,

Neil Walker
Westminster PCT



------------------------

That is a generalized linear model with a Poisson distribution and log link
function. This could be done in SAS for instance with proc genmod.

Paul R. Swank, Ph.D.
Professor, Developmental Pediatrics
Medical School
UT Health Science Center at Houston

------------------------

Sounds to me like you are interested in a test involving the difference of
two Poisson random variables. At least, that would be the closest parallel
to the paired t-test with normal variates: you form the difference within
each pair, and then work with the distribution of those differences.
Johnson, Kotz, and Kemp (1993) Univariate Discrete Distributions, talk about
such a distribution (difference of 2 Poisson r.v.'s) on pp 191 - 192. I
haven't gone through the pf in detail, but it looks reasonably managable.
They do say "the approach to normality is rapid", for what that's worth.
(What does "rapid" mean?) So, you MIGHT do OK using the standard paired
t-test.

Alternatively, you could use a generalized linear mixed model (GLMM).

Cheers,
Scott

===================================
Scott D Chasalow
Monsanto Company

Email: [log in to unmask]

------------------------

At 12:45 26/09/02 -0500, you wrote:
>That is a generalized linear model with a Poisson distribution and log link
>function.

No it isn't. A standard GLM doesn't account for the within-pair
correlation. A GLM approach would have to be implemented via GEEs to
account for this.
Regards,
Richard

=====================================================================
                        Richard E. Chandler
                        ^^^^^^^^^^^^^^^^^^^
Room 145, Dept of Statistical Science, University College London,
1-19 Torrington Place, London WC1E 6BT, UK
Tel: +44 (0)20 7679 1880 Fax: +44 (0)20 7383 4703

Internet: http://www.ucl.ac.uk/Stats (department)
          http://www.homepages.ucl.ac.uk/~ucakarc (personal)
email: [log in to unmask]

------------------------

Niel,

Conditional Poisson Regression, which conditions on the total number of
events for each stratum, might be something worth considering. For paired
data, each
pair would be a stratum. It is not strictly analagous to the paired t-test
in
that the paired t-test is equivalent to a random stratum (pair) effect,
whereas
Conditional Poisson Regression would be interpretted as a fixed stratum
effect.
But its better than nothing as a way of taking pair (stratum) effects into
account in the model.

Andrew Dunning

Andrew J. Dunning
Senior Statistician
Wyeth Research
(845) 602 4313

------------------------

Yes. Given two poisson counts x1, x2 with expected values mu1 and mu2,
x1 is Binomial n=x1+x2 and p = mu1/(mu1+mu2).

mu1 = mu2 only if p = 1/2.

Use a standard binomial test for x1 from, with n= x1+x2, p = 1/2.

------------------------

The basic idea is that for each pair (x,y), if the null hypothesis being
tested is that the mean difference is zero (ratio of means equals 1), then
x be treated as binomial with "n" equal to x+y, and null "p" equal to 1/2.
So the full analysis would be that for a series of binomial responses.
If the null ratio of means is some constant other than 1, say k, then the
binomial null "p" would be mean(x) divided by mean(x)+mean(y).

As a previous e-mail said, this can be done "blindly" as a loglinear model
in SAS or S-Plus or R.

DVH, UCSB

------------------------

I think this is standard - just condition on the total counts (n_i) within
each pair and you have conditionally independent Binomial(n_i,0.5) r.v.'s.
Alternatively use a simple chi-squared test - I'll leave you to think of the
details!
Jim.

------------------------

The two-sample Poisson test is done via the binomial.

If X is Poisson (mean mu_1) and, independently, Y is Poisson (mean mu_2),
then X+Y is also Poisson. Given X+Y = n, say, X is binomial with
index n and parameter (probability) mu_1 / (mu_1 + mu_2). So a
test of mu_1 = mu_2 is equivalent to testing a binomial for p = 1/2.
So if x=5 and y=12, you see if 5 is far into the tail of B(17,0.5).

This extends in a natural way to random samples rather than single
observations X and Y, since the totals will still be Poisson. Also
you can test hypotheses such as mu_1 = 2 mu_2 by testing p=1/3.

Let me know if the above is too cryptic, and I can try to
expand.

Eryl Bassett

------------------------------+------------------------------------------
E. Eryl Bassett, | Web: http://www.ukc.ac.uk/ims/statistics/
Institute of Mathematics | e-mail: [log in to unmask]
            and Statistics, | phone: +44 (0) 1227 764000 ext 3798
Univ. of Kent at Canterbury, | +44 (0) 1227 823798 direct
Canterbury, Kent, UK, CT2 7NF | fax: +44 (0) 1227 827932

------------------------

hi Neil,
have a look in Instat [freeware] at
http://www.rdg.ac.uk/ssc/instat/instat.html
open any worksheet from the library and under simple models u find 1 & 2
sample Poisson.
the 1-sample has exact CI, formulae from Armitage & Berry 1992.
The 2-sample has a normal approx CI only, exact CI for a difference between
I have never seen.

Alessandro Leidi
Statistician, Statistical Services Centre

------------------------

McNemar's test could be what you are looking for.
Covered in most general stats texts.

------------------------

Hi Neil
You could try the useful result (See Cox, Analysis of Binary Data)
that if n1 and n2 have Poisson distributions n1/(n1+n2) is Binomial.
So tp test is E(n1)=E(n2) you simply test if n1/(n1+n2) could come
from a Binomial distribution with expectation 0.5.
Mike

Professor Mike Campbell
Institute of Primary Care and General Practice
University of Sheffield
Community Sciences Centre
Northern General Hospital
Sheffield S5 7AU

Tel 0114 271 5919
Fax 0114 242 2136
e-mail [log in to unmask]
http://www.shef.ac.uk/michaelcampbell/
http://www.shef.ac.uk/medical-statistics/

------------------------

For each pair, condition on the sum, so you deal with
binomial with appropriate parameters. The binomial
data can be analysed using logistic regression.
The test of equal mean reduces to testing whether
the constant term is zero. (See Exercise 6.13 in Pawitan,
In All Likelihood.)

------------------------

Dear Neil

You could use the non-parametric equivalent of the paired t-test: the
Wilcoxon
signed ranks test. Note that this tests the null hypothesis of equal
distributions between the two groups. Hence p<0.05 may result if the mean
counts
are equal but there is a marked difference in the tails of the two groups of
observed data.

The suggested Poisson regression would allow more complexity in the analysis
(you could adjust for confounders for example) but you would need to find
some
way of incorporating the paired structure of the data into the analysis. I
don't
know SAS, but the easiest (and not necessarily the best) way to do this in
S-Plus and Stata is to use the "cluster(id)" option.

Finally, is using the paired t-test out of the question? This test is based
on
the differences between the sets of paired measurements, which you will find
(due to central limit theorem) are more normally distributed than the
individual
measurements. Of course, *more* normally distributed may still be nowhere
near
normally distributed.

With best wishes, Chris
__________________________

Chris Metcalfe
Research Associate
MRC Biostatistics Unit
Institute of Public Health
University Forvie Site
Robinson Way
Cambridge
CB2 2SR

e.mail : [log in to unmask]
telephone : 01223 330 394
fax : 01223 330 388

------------------------



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001
2000
1999
1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager