4.8 Slides - Example Melanoma Mortality (Count)
4.8 Slides - Example Melanoma Mortality (Count)
Mortality (count)
Eventueel ondertitel
Cas Kruitwagen
Example case: Melanoma Mortality
• Data: Mmmec
library(mlmRev)
data(Mmmec)
?Mmmec
2
Example case: Melanoma Mortality
• Data: Mmmec
data frame with 354 observations on the following 6 variables:
3
Example case: Melanoma Mortality
Examine the dataset
> Mmmec[1:4,]
nation region county deaths expected uvb
1 Belgium 1 1 79 51.2220 -2.9057
2 Belgium 2 2 80 79.9560 -3.2075
3 Belgium 2 3 51 46.5169 -2.8038
4 Belgium 2 4 43 55.0530 -3.0069
> Mmmec[301:304,]
nation region county deaths expected uvb
301 Italy 66 302 5 8.2140 6.0751
302 Italy 66 303 11 7.1600 6.6938
303 Italy 67 304 13 13.6230 1.2744
304 Italy 67 305 15 13.9220 1.6140
4
Example case: Melanoma Mortality
Some descriptives
5
Example case: Melanoma Mortality
Some more descriptives
> summary(Mmmec$deaths)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.00 8.00 14.50 27.83 31.00 313.00
> summary(Mmmec$expected)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.69 11.02 18.76 27.80 34.39 258.90
> summary(Mmmec$uvb)
Min. 1st Qu. Median Mean 3rd Qu. Max.
-8.900000 -4.158000 -0.886400 0.000204 3.276000 13.360000
6
Example case: Melanoma Mortality
• Let’s think about the analysis
• Deaths in county (count) -> Poisson regression
• Counties (=level 1) within regions (sample of regions in EU,=level 2)
• Predictor: UVB dose
• Random intercept per region?
• Random slope for UVB per region?
7
Example case: Melanoma Mortality
• Histogram of the outcome variable
> hist(Mmmec$deaths, xlim = c(0, 320), breaks = 320)
8
Example case: Melanoma Mortality
• Expected deaths -> Use offset in Poisson model
E (deathsi )
ln = β 0 + β1 X 1i + ... + β p X pi
expectedi
9
Example case: Melanoma Mortality
• Some possible models
o Fixed effect only:
ln 𝐸𝐸 𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑖𝑖 = 𝑙𝑙𝑙𝑙 𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑖𝑖 + 𝛽𝛽0 + 𝛽𝛽1 𝑢𝑢𝑢𝑢𝑢𝑢𝑖𝑖
10
Example case: Melanoma Mortality
Poisson regression model for deaths, regressed on a main effect of uvb,
and including a random intercept for region
11
Example case: Melanoma Mortality
> pmod1
Generalized linear mixed model fit by the Laplace approximation
Formula: deaths ~ uvb + (1 | region)
Data: Mmmec
AIC BIC logLik deviance
661.4 673 -327.7 655.4
Random effects:
Groups Name Variance Std.Dev.
region (Intercept) 0.16968 0.41192
Number of obs: 354, groups: region, 78
Fixed effects:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -0.138601 0.049330 -2.810 0.004959 **
uvb -0.034434 0.009734 -3.538 0.000404 ***
12