Learn R Programming

eha (version 1.4)

swe07: Swedish population and deaths in ages 61--80, 2007.

Description

The Swedish population and No. of deaths by age and sex in the ages 61--80. Data from the year 2007.

Usage

data(swe07)

Arguments

source

Data is taken from Statistics Sweden.

Details

The average population is calculated as the mean of the population 1 January 2007 and 1 January 2008.

References

http://www.scb.se

Examples

Run this code
data(swe07)
fit <- glm(deaths ~ offset(log.pop) + sex * as.factor(age), family = poisson, data = swe07)
drop1(fit, test = "Chisq")  ## Proportional hazards?

Run the code above in your browser using DataLab