|
Home > Statistics Every Writer Should Know > The Stats Board > Discusssion
How to calculate this problem In a hospital during last year 394 patients were treated and 30 of them developed complications and during this year 192 patients were treated and 12 of them developed complications.How to compare this two and determine which is statistically significant and better. 1.By chi square analysis Please help me.
READERS RESPOND: Re: How to calculate this problem
What you do is create a contingency table: [ ]#[Year1]#[Year2]#[Total] The expected values for each cell in the table can be calculated from the row and column totals: to give the following values: [ ]#[Year1]#[Year2]#[Total] A quick glance at the expected values shows that they are very similar to the observed values, indicating that there is probably no difference between the years. However, we need to work out the X squared statistic: X squared = sum {(observed - expected)^2} / expected = 0.110 + 0.225 + 0.008 + 0.017 = 0.361 2*2 contingency table has degrees of freedom df = 1. p score can be calculated in Excel by {=CHIDIST(0.361,1)} which gives 0.548 This p value is much larger than the 0.05 = 5% usually taken as a significance level. Oops! Should have stated at the beginning: Null hypothesis: No of complications independent of Year. Alternative hypothesis: No of complications dependent on Year. Conclusion: No of complications is independent of Year.
Your $5 contribution helps cover part the $500 annual cost of keeping this site online.
|
|||||||||
|