Description Usage Arguments Value
View source: R/slope_analysis_ssvs.R
Function performs Bayesian analysis on the relationship between a slope parameter and the presence/absence of a fish species. This function also introduces an ssvs component, reducing the parameter effect of parameters which don't have too much impact on the model.
1 2 3 4 | slope_analysis_ssvs(upstream_slopes_test, parameters_for_analysis, species,
include.distance = FALSE, just.distance = FALSE, scale = FALSE,
interaction = FALSE, n.iter = 10000, n.thin = 10, n.burn = 2000,
n.chai = 3, n.upda = 20000, to.monitor = c("beta", "p", "ssvs.ind"))
|
upstream_slopes_test |
Table derived from the extract_slope_params function. |
parameters_for_analysis |
All slope parameters that you want to be evaluated. Note that these do not have to be all of the parameters in your upstream_slopes_test table. |
species |
Species to analyse |
include.distance |
Defines whether or not your analysis should include distance between focal lakes as well as slope |
just.distance |
Defines whether or not you just want to analyse distance between focal lakes |
interaction |
Specifies whether or not you want to include the interaction term in your model |
n.iter |
All of these parameters (n.iter, n.burn, n.thin, n.chai and n.upda) concern your MCMC sampling. Defaults are 10000, 2000, 10, 3 and 20000, respectively. |
A) A summary table showing the means and confidence interval for the beta values of the effects of each slope parameter and distance between focal lakes on fish presence/absence and B) Full Bayesian analysis for each parameter.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.