smr.test: Standardized Mortality Ratio (SMR) Test

Description Usage Arguments Details Value References See Also Examples

Description

Performs a chi-sqaure test of the null that there is no mortality difference between the cohort and standard population.

Usage

1
smr.test(count, pop, stdcount, stdpop, conf.level = 0.95)

Arguments

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.

Details

When the expected number of deaths is less than 5, exact.rate.test is used to calculate the confidence interval and p-value.

Value

A list with class "htest" containing the following components:

p.value

The p-value of the test.

estimate

An estimate of the SMR ratio.

null.value

The null SMR ratio. Currently set to 1.

conf.int

A confidence interval for the SMR ratio.

alternative

A character string describing the alternative hypothesis. Currently only "two.sided".

method

A character string indicating the method employed.

data.name

Character strings giving the name of the data.

References

Newman (2001), page 255-258.

See Also

ageadjust.indirect in the epitools package.

Examples

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

clayford/bme documentation built on May 13, 2019, 7:37 p.m.