Skip to content

Commit

Permalink
replace 20 C with 2 degC
Browse files Browse the repository at this point in the history
  • Loading branch information
jrising committed Mar 3, 2024
1 parent ba9bb41 commit df79311
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorial-content/content/example-step2.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ It is also non-linear. Both cold and hot weather kills people,
relative to deaths at moderate (pleasant) temperatures. We can model
this with a quadratic relationship. We need to choose some baseline
temperature for comparison purposes. For our example, we will use 20
C. The dose-response function will describe excess mortality, relative
to a day with an average temperature of 20 C.
$^{\circ}$C. The dose-response function will describe excess mortality, relative
to a day with an average temperature of 20 $^{\circ}$C.

We also need to weight our pixel data. We want the dose-response
function to be representative of a random individual, not a random
Expand All @@ -25,7 +25,7 @@ weather and outcome data. The sum over daily death data is annual
death data, which is what we have.

Then, we want to transform the weather data by creating two predictor
variables, for the linear and quadratic terms relative to 20 C.
variables, for the linear and quadratic terms relative to 20 $^{\circ}$C.

$$X_{1, i, y} = \sum_{t \in \text{Year}(y)} \sum_{p \in \Theta(i)} w_p (T_{p i t} - 20)$$
$$X_{2, i, y} = \sum_{t \in \text{Year}(y)} \sum_{p \in \Theta(i)} w_p (T_{p i t}^2 - 20^2)$$
Expand Down

0 comments on commit df79311

Please sign in to comment.