Skip to content

Commit 6be79f1

Browse files
authored
Merge pull request #278 from cmu-delphi/ndefries/multreg-denom
Correct multinomial regression denominator in vignette
2 parents b5121c3 + a015e6f commit 6be79f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vignettes/preprocessing-and-models.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ consider the trend to be `flat`.
419419
The expression of the multinomial regression we will use is as follows:
420420

421421
$$
422-
\pi_{j}(x) = \text{Pr}(Z_{\ell,t} = j|x) = \frac{e^{g_j(x)}}{1 + \sum_{k=0}^2 g_j(x) }
422+
\pi_{j}(x) = \text{Pr}(Z_{\ell,t} = j|x) = \frac{e^{g_j(x)}}{1 + \sum_{k=1}^{2}e^{g_k(x)} }
423423
$$
424424

425425
where $j$ is either down, flat, or up

0 commit comments

Comments
 (0)