Description Usage Arguments Details Value References See Also Examples
Performs a chi-sqaure test of the null that there is no mortality difference between the cohort and standard population.
1 | smr.test(count, pop, stdcount, stdpop, conf.level = 0.95)
|
count |
vector of age-specific cohort deaths |
pop |
vector of age-specific cohort population or person-years |
stdcount |
vector of age-specific standard population deaths |
stdpop |
vector of age-specific standard population |
conf.level |
confidence level as a number between 0 and 1. Default is 0.95. |
When the expected number of deaths is less than 5, exact.rate.test
is used to calculate the confidence interval and p-value.
A list with class "htest"
containing the following
components:
The p-value of the test.
An estimate of the SMR ratio.
The null SMR ratio. Currently set to 1.
A confidence interval for the SMR ratio.
A character string describing the alternative hypothesis. Currently only "two.sided".
A character string indicating the method employed.
Character strings giving the name of the data.
Newman (2001), page 255-258.
ageadjust.indirect
in the epitools
package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Example 12.3
with(schizophrenia,
smr.test(count = cohort.deaths,
pop = cohort.py,
stdcount = alberta.deaths,
stdpop = alberta.pop))
## Example 12.3 continued,
## Exact test (expected number of deaths < 5)
with(subset(schizophrenia,age.group=="10-19"),
smr.test(count = cohort.deaths,
pop = cohort.py,
stdcount = alberta.deaths,
stdpop = alberta.pop))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.