Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Parnell committed Apr 21, 2021
2 parents c158581 + 28f6b2a commit ed14523
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 146 deletions.
143 changes: 0 additions & 143 deletions MixSIAR_model.txt

This file was deleted.

6 changes: 3 additions & 3 deletions ap_notes/siar_stats/siar_stats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ model_run = jags(data = data,
parameters.to.save = c("p", "sigma"),
model.file = textConnection(model_code))
```
This is now running with all 4 sources

## Results

Expand Down Expand Up @@ -226,6 +225,7 @@ $$ y_{ij} \sim N \left( \frac{\sum_{k=1}^K p_k q_{jk} (\mu_{s,jk}+\mu_{c,jk})}{\
- This model has a more complicated likelihood, but removes the extra $s$ and $c$ parameters

## Full SIAR model: JAGS code
\small
```{r,results='hide'}
model_code ='
model {
Expand Down Expand Up @@ -278,7 +278,7 @@ Some of these proportions are quite imprecise: perhaps see better with matrix pl
- It allows for direct plotting of the data in isotope space and $p$-space (i.e. dietary proportion space - `pairs` plots)
- It allows for changing the $\alpha$ values to put in proper prior information
- It includes convergence checking
- Most of this covered in the practical this afternoon
- Most of this was covered in the practical yesterday

## simmr version

Expand Down Expand Up @@ -320,5 +320,5 @@ plot(simmr_out, type = 'boxplot')
- The simmr and SIAR models are just complicated versions of linear regression
- The response is multivariate and the prior distributions on some of the parameters have to be constrained to sum to 1
- It used to be the case that JAGS was slow and couldn't run SIMM-type models. This is no longer true. You can fit much richer models in JAGS (and now MixSIAR) than with SIAR/simmr
- More details on running simmr in the practical next
- The MixSIAR is an order of complexity again as it uses ideas from generalised linear models to include covariates on the dietary proportions

Binary file modified ap_notes/siar_stats/siar_stats.pdf
Binary file not shown.

0 comments on commit ed14523

Please sign in to comment.