﻿ Martin Otava

## Pondělí: sudé 17.20 K4, liché online 18.15

Pro veškerou komunikaci stran předmětu a zasílání vypracovaných úloh použijte email otava at karlin.mff.cuni.cz.

### Assignment 1: Estimating incidence rates (due: 12.00 05.03.2023)

The dataset dbtr (here) contains the numbers of cases of Type 1 Diabetes Mellitus observed in the Czech Republic, together with the population size, aggregated by sex, age (0 to 14) and calendar year (1989-2009).

1. Estimate age-specific incidence rates of Type 1 DM by calendar year for boys, girls and all children. [Decide whether and how age and calendar year should be grouped.] Plot estimated incidence rates against age for (i) different time periods; (ii) different birth cohorts. Do you feel that incidence of Type 1 DM changed between 1989 and 2009?
2. Estimate the cumulative risks (i.e., probabilities) of developing Type 1 DM before the 15th year of age at different time periods (again for boys, girls, and all together).
3. Calculate age-standardized incidence rates for Type 1 DM at different time periods (again for boys, girls, and all together). [Age standardized rates combine age-specific rates over the same standard age distribution at all periods.]
4. Calculate confidence intervals for cumulative risks and age-standardized incidence rates.

Solution (focus on codes, not format): HTML output and underlying Quarto code

### Assignment 2: Case-control analysis via logistic regression (due: 12.00 02.04.2023)

Ille-et-Vilaine Data contains the results of a case-control study investigating the effect of alcohol and tobacco consumption on the risk of oesophageal cancer. There are 200 male cases and 775 male controls, all of them inhabitants of the French departement Ille-et-Vilaine. (See [BD1], Sec. 4.1, p. 122–124, reference in course materials).

1. Reproduce the descriptive results in Table 4.1 of [BD1], p. 123.
2. Conduct a grouped analysis of alcohol risk adjusted for age (see [BD1], p. 210–213).
3. Conduct a joint grouped analysis of alcohol and tobacco risk adjusted for age (see [BD1], p. 213–221, esp. Tables 6.5 and 6.6).
4. Conduct a joint ungrouped analysis of alcohol and tobacco risk adjusted for age (see [BD1], p. 227–231, esp. Table 6.12).