Skip to content

Commit

Permalink
Updated p6.Rmd
Browse files Browse the repository at this point in the history
Converted p6.Rmd to use MCMCpack, although the Poisson example should be changed as it uses a fudge to deal with the offset. Also tidied p5.Rmd a little and updated the Description.
  • Loading branch information
MarkJBrewer committed Jun 21, 2024
1 parent 2ec02df commit 6e07a90
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 157 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: vibass
Title: Valencia International Bayesian Summer School
Version: 0.0.40
Version: 0.0.41
Authors@R:
c(person(given = "VIBASS5",
role = c("aut")),
Expand Down Expand Up @@ -66,6 +66,7 @@ Suggests:
LaplacesDemon,
magick,
MASS,
MCMCpack,
plotly,
rmarkdown,
R2BayesX,
Expand Down
5 changes: 3 additions & 2 deletions vignettes/p5.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,9 @@ to see the help page for MCMCregress. We specify the formula just as we would
for a non-Bayesian regression using the lm function in Base R. Conjugate priors
are used, with Normal priors for the regression parameters $\beta$ (with means
in `b0` and precisions in `B0`) and an inverse Gamma prior for the residual
variance $\sigma^2$.
The hyperparameters for the prior for $\sigma^2$ can either be set
variance $\sigma^2$; the latter is equivalent to a Gamma prior for the
residual precision $\tau$.
The parameters for the prior for $\tau$ can either be set
as the shape and scale parameters of the Gamma distribution
(`c0/2` and `d0/2` respectively) or as the mean and variance
(`sigma.mu` and `sigma.var`).
Expand Down
Loading

0 comments on commit 6e07a90

Please sign in to comment.