Skip to content

Commit a015e6f

Browse files
committed
correct multinomial regression denominator
1 parent 378577a commit a015e6f

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)