Skip to content

Commit d3446f9

Browse files
committed
typo fixes
1 parent d76dfb8 commit d3446f9

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

src/stan-users-guide/finite-mixtures.qmd

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,8 @@ used for mixing proportions because $\lambda$ is the traditional
469469
notation for a Poisson mean parameter). Given the probability $\theta$
470470
and the intensity $\lambda$, the distribution for $y_n$ can be written as
471471
\begin{align*}
472-
y_n & = 0 \quad\text{with probability } \theta, \text{ and}\\
473-
y_n & \sim \textsf{Poisson}(y_n \mid \lambda) \quad\text{with probability } 1-\theta.
474-
\begin{cases}
475-
476-
472+
y_n & = 0 & \quad\text{with probability } \theta, \text{ and}\\
473+
y_n & \sim \textsf{Poisson}(y_n \mid \lambda) & \quad\text{with probability } 1-\theta.
477474
\end{align*}
478475

479476

@@ -582,7 +579,7 @@ $$
582579
\begin{align*}
583580
y_n & = 0 \quad\text{with probability } \theta, \text{ and}\\
584581
y_n & \sim \textsf{Poisson}_{x\neq 0}(y_n \mid \lambda) \quad\text{with probability } 1-\theta,
585-
\end{cases}
582+
\end{align*}
586583
$$
587584
Where $\textsf{Poisson}_{x\neq 0}$ is a truncated Poisson distribution, truncated at $0$.
588585

src/stan-users-guide/measurement-error.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ $$
131131
z_n \sim \textsf{normal}(\mu, \sigma).
132132
$$
133133

134-
The rounding process entails that $z_n \in (y_n - 0.5, y_n + 0.5)$^{There are several different rounding rules (see, e.g., [Wikipedia: Rounding](https://en.wikipedia.org/wiki/Rounding)), which affect which interval ends are open and which are closed, but these do not matter here as for continuous $z_n$ $p(z_n=y_n-0.5)=p(z_n=y_n+0.5)=0$.}.
134+
The rounding process entails that $z_n \in (y_n - 0.5, y_n + 0.5)$^[There are several different rounding rules (see, e.g., [Wikipedia: Rounding](https://en.wikipedia.org/wiki/Rounding)), which affect which interval ends are open and which are closed, but these do not matter here as for continuous $z_n$ $p(z_n=y_n-0.5)=p(z_n=y_n+0.5)=0$.].
135135
The probability mass function for the discrete observation $y$ is then given
136136
by marginalizing out the unrounded measurement, producing the likelihood
137137
\begin{align*}

src/stan-users-guide/survival.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,9 @@ function $h_0(t)$ is unmodeled; if the baseline hazard were known,
505505
failure times could be generated. Cox's proportional hazards model is
506506
generative for the ordering of failures conditional on a number of
507507
censored items. Proportional hazard models may also include parametric
508-
or non-parametric model for the baseline hazard function^{Cox mentioned
508+
or non-parametric model for the baseline hazard function^[Cox mentioned
509509
in his seminal paper that modeling the baseline hazard function would improve
510-
statistical efficiency, but he did not do it for computational reasons.}.
510+
statistical efficiency, but he did not do it for computational reasons.].
511511

512512

513513
### Partial likelihood function {-}

src/stan-users-guide/truncation-censoring.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ that $y_{\mathrm{cens},m}>U$.
201201
With $M$ censored observations, the likelihood on the log scale
202202
is
203203
\begin{align*}
204-
\log \prod_{m=1}^M \Pr[y_m > U]
204+
\log \prod_{m=1}^M \Pr[y_{\mathrm{cens},m} > U]
205205
&= \log \left( 1 - \Phi\left(\left(\frac{U - \mu}{\sigma}\right)\right)^{M}\right) \\
206206
&= M \times \texttt{normal}\mathtt{\_}\texttt{lccdf}\left(U \mid \mu, \sigma \right),
207207
\end{align*}

0 commit comments

Comments
 (0)