Thread Subject: Simple Chisquare hypothesis tests

Subject: Simple Chisquare hypothesis tests

From: DJ_Jones

Date: 6 Jan, 2007 04:26:19

Message: 1 of 2

I am kind of lost here. I have Matlab R2006b including the statistics
toolbox, yet I could not find a way to do a simple hypothesis test. For
example, I compare the prevalence of a infected virus in two
populations X1 and X2. In X1 23 out of 65 are positive and in X2 15 out
of 40 are positive. I like to calculate p to see whether the prevalence
is statistically different among the populations. I would use a simple
chisquare test or Fisher's test, but could not find those functions
in Matlab.

Thanks

Subject: Simple Chisquare hypothesis tests

From: Peter Perkins

Date: 8 Jan, 2007 13:07:50

Message: 2 of 2

DJ_Jones wrote:
> I am kind of lost here. I have Matlab R2006b including the statistics
> toolbox, yet I could not find a way to do a simple hypothesis test. For
> example, I compare the prevalence of a infected virus in two
> populations X1 and X2. In X1 23 out of 65 are positive and in X2 15 out
> of 40 are positive. I like to calculate p to see whether the prevalence
> is statistically different among the populations. I would use a simple
> chisquare test or Fisher's test, but could not find those functions
> in Matlab.

DJ, the CROSSTAB function will do a chi-square test given the raw data.

Hope this helps.

- Peter Perkins
   The MathWorks, Inc.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com