Skip to content

Commit 5dcadbc

Browse files
committed
update ICAR case study
1 parent b42db75 commit 5dcadbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

knitr/car-iar-poisson/icar_stan.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ are $1$ if regions $i$ and $j$ are neighbors and $0$ otherwise.
109109
- $D$ is the $n \times n$ diagonal matrix where entries $\{i,i\}$ are the number of neighbors of region $i$
110110
and the off-diagonal entries are $0$.
111111
- $D_{\tau} = \tau\, D$.
112-
- $\alpha$ a parameter which controls the amount of spatial correlation, where
113-
where $\alpha = 0$ implies spatial independence and where $\alpha = 1$ implies complete spatial correlation.
112+
- $\alpha$ controls the amount of spatial correlation;
113+
$\alpha = 0$ implies spatial independence and $\alpha = 1$ implies complete spatial correlation.
114114
- $B$ is the scaled adjacency matrix $D^{-1}W$.
115115
- $I$ is an $n \times n$ identity matrix.
116116

@@ -120,8 +120,8 @@ thus the joint distribution $\phi$ is proper.
120120
Evaluation of $\phi$ requires computing the determinant of the precision matrix $Q$,
121121
which is computationally expensive.
122122
See the Stan case study
123-
[Exact sparse CAR models in Stan](http://mc-stan.org/documentation/case-studies/mbjoseph-CARStan.html),
124-
for discussion of how to speed up computation.
123+
[Exact sparse CAR models in Stan](http://mc-stan.org/documentation/case-studies/mbjoseph-CARStan.html)
124+
for ways to speed up computation.
125125

126126
### Intrinsic Conditional Auto-Regressive (ICAR) models
127127

0 commit comments

Comments
 (0)