|
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.
|