You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Tweak plots, including color scale
- bug: Preprocess filtering now removes dates after end of last season
- Improve equation notation
- Add tool for rendering equation
Copy file name to clipboardExpand all lines: docs/lpl.md
+25-31Lines changed: 25 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,50 +4,44 @@ This model proposes a latent true coverage curve, which is subject to observatio
4
4
5
5
## Terminology and notation
6
6
7
-
-_feature_: A categorical feature of the data (e.g., season, geography) that partially determines coverage
8
-
-_level_: A value taken on by a feature (e.g., New Jersey, or 2018/2019)
9
-
-_group_: A unique combination of features (e.g., New Jersey in 2018/2019)
10
-
- $t$: time since the start of the season, measured in $\text{year}^{-1}$
11
-
- $n_{gt}$: number of people in group $g$, surveyed at time $t$. Drawn from the `sample_size` column of the NIS data; called `N_tot` in the codebase.
12
-
- $x_{gt}$: number of people in group $g$, surveyed at time $t$, who are vaccinated. Approximated as $\mathrm{round}(\hat{v}_{gt}, n_{gt})$, where $\hat{v}_{gt}$ is the `estimate` column.
13
-
- $v_g(t)$: latent true coverage among group $g$ at time $t$
14
-
- $z_{gj}$: integer index indicating the level of the $j$-th feature for group $g$.
15
-
16
-
For example, let the features be season and geography, in that order. Let group 5 be associated with the fourth season and the third geography. Then $z_{51} = 4$ and $z_{52} = 3$.
17
-
18
-
## Model overview
19
-
20
-
For each group $g$, the latent coverage $v_g(t)$ is assumed to be a sum of a logistic curve and a line with intercept at $t=0$. The shape parameter $K$ and midpoint $\tau$ of the logistic curve are assumed to be common to all groups. The height $A_g$ of the logistic curve is a grand mean $\mu_A$ plus effects $\delta_{A,j,z_{gj}}$ for each feature $j$. For example, the $A_g$ for Alaska in 2018/2019 will be the grand mean $\mu_A$, plus the Alaska effect, plus the 2018/2019 effect. In fact, the model uses a third interaction term season-geography, so there is also an Alaska-in-2018/2019 term.
21
-
22
-
The slopes $M_g$ follow a similar pattern.
23
-
24
-
The observations $x_{gt}$ are beta binomial-distributed around the mean $v_g(t) \cdot n_{gt}$, with variance modified by an extra parameter $D$.
7
+
- $C_{sgm}$: reported, estimated coverage (proportion of people vaccinated) in season $s$, geography (i.e., state) $g$, and month $m$ (`estimate` in the data)
8
+
- $N_{sgm}$: number of people surveyed (`sample_size` in the data)
9
+
- $v_{sg}(t)$: latent true coverage at time $t$ (measured in years)
- The latent coverage $v_{sg}(t)$ is assumed to be a sum of a logistic curve and a line with intercept at $t=0$
39
+
- The shape parameter $K$ and midpoint $\tau$ of the logistic curve are assumed to be common to all groups
40
+
- The height $A_{sg}$ of the logistic curve is a grand mean $\beta^{(A)}$ plus effects for the season, state, and season-state interaction. The slopes $M_g$ follow a similar pattern.
0 commit comments