File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
\usepackage {mathpazo }
4
4
\usepackage [scale=0.9 ]{sourcecodepro }
5
5
\usepackage {amssymb }
6
+ \usepackage {mathtools }
6
7
\linespread {1.03}
7
8
8
9
\usepackage {titlesec }
Original file line number Diff line number Diff line change 435
435
As with other event probabilities, this can be calculated in the
436
436
generated quantities block either by sampling $z_i$ and $z_j$ and
437
437
using the indicator function on their equality, or by computing the
438
- term inside the integral as a generated quantity. As with posterior
438
+ term inside the integral as a generated quantity. As with posterior
439
439
predictive distribute, working in expectation is more statistically
440
440
efficient than sampling.
441
441
@@ -575,12 +575,12 @@ The hurdle model is similar to the zero-inflated model, but more
575
575
flexible in that the zero outcomes can be deflated as well as
576
576
inflated. Given the probability $\theta$ and the intensity $\lambda$,
577
577
the distribution for $y_n$ can be written as
578
- $$
578
+ \[
579
579
\begin{align* }
580
580
y_n & = 0 \quad\text{with probability } \theta, \text{ and}\\
581
581
y_n & \sim \textsf{Poisson}_ {x\neq 0}(y_n \mid \lambda) \quad\text{with probability } 1-\theta,
582
582
\end{align* }
583
- $$
583
+ \]
584
584
Where $\textsf{Poisson}_ {x\neq 0}$ is a truncated Poisson distribution, truncated at $0$.
585
585
586
586
The corresponding likelihood function for the hurdle model is
You can’t perform that action at this time.
0 commit comments