Description Usage Arguments Value Examples

This function returns a string with a Bayesian model to be used with trophic position calculations

1 | ```
jagsBayesianModel(model = NULL, ...)
``` |

`model` |
string. Can be "oneBaseline", "twoBaselines" or "twoBaselinesFull" at the moment. |

`...` |
additional arguments passed to |

a jags model as a character string

1 2 3 4 5 6 7 8 9 10 11 | ```
# Example with priors for TP.
# One baseline Bayesian model with prior for trophic position of consumer
# defined as a normal distribution with mean 3 and sd 1
model.string <- jagsBayesianModel(model = "oneBaseline", TP = "dnorm(3,1)")
# Two baselines model with trophic level of baseline = 1
model.string <- jagsBayesianModel(model = "twoBaselines", lambda = 1)
# Two baselines full model with priors for alpha
model.string <- jagsBayesianModel(model = "twoBaselinesFull",
alpha = "dbeta(10,1)")
``` |

```
This is tRophicPosition 0.7.7
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.