Skip to content

Commit 752fc5b

Browse files
committed
example 8.8 redone
1 parent c705914 commit 752fc5b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

vignettes/Chapter08.Rmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,9 @@ $$\mu=\alpha \frac{\frac{1}{1+\alpha/e \exp(- \mathbf{x}\boldsymbol{\beta})}}
751751
{\frac{\alpha/e \exp(- \mathbf{x}\boldsymbol{\beta})}{1+\alpha/e \exp(- \mathbf{x}\boldsymbol{\beta})}} = e \exp( \mathbf{x}\boldsymbol{\beta}),$$
752752
and we will use $\alpha$ and $\mu$ to specify the negative binomial distribution.
753753

754+
Extra Functions for the sampling steps ?ß
755+
756+
754757
```{r}
755758
negbin <- function(y, X, e, b0 = 0, B0 = 100, qmean, qvar, pri.alpha,
756759
full.gibbs = FALSE, burnin = 1000L, M = 50000L) {

0 commit comments

Comments
 (0)