slope_analysis_ssvs: Analyse slope

Description Usage Arguments Value

View source: R/slope_analysis_ssvs.R

Description

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.

Usage

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"))

Arguments

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.

Value

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.


samaperrin/analyseslope documentation built on Jan. 8, 2020, 9:19 p.m.