cancer.df: Death Rates for Child Cancer

Description Usage Format Examples

Description

Data from study to investigate death rates for child cancer in the UK from 1951-1960 in Northumberland and Durham

Usage

1

Format

A data frame with 8 observations on the following 5 variables:

Cytology

a factor with levels L M

Residence

type of residence either rural or urban

Age

the age of the child classified as either 0-4 years or 5-14 years

n

number of deaths

pop

population

Examples

1
2
3
4
data(cancer.df)
cancer.glm<-glm(n ~ Cytology*Residence*Age, family=poisson,
offset=log(pop/100000), data=cancer.df)
anova(cancer.glm, test="Chisq")

Example output

Loading required package: s20x
Loading required package: leaps
Loading required package: rgl
Loading required package: lattice
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 
Analysis of Deviance Table

Model: poisson, link: log

Response: n

Terms added sequentially (first to last)


                       Df Deviance Resid. Df Resid. Dev  Pr(>Chi)    
NULL                                       7     92.452              
Cytology                1   48.952         6     43.500 2.624e-12 ***
Residence               1    5.848         5     37.652  0.015597 *  
Age                     1   23.875         4     13.777 1.028e-06 ***
Cytology:Residence      1    1.110         3     12.667  0.292033    
Cytology:Age            1    8.717         2      3.950  0.003152 ** 
Residence:Age           1    2.895         1      1.054  0.088849 .  
Cytology:Residence:Age  1    1.054         0      0.000  0.304491    
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

R330 documentation built on May 2, 2019, 2:12 p.m.