remix_PI: Estimate predictive intervals for consumer isotope ratios

Description Usage Arguments Details Value Author(s)

View source: R/remix_PI.R

Description

Plotting the consumer's isotope values against those predicted by the model can be useful to detect model bias, or instance when consumers fall outside the source polygon. This function also returns residuals for the consumers as their deviations from the mean predicted value.

Usage

1
2
remix_PI(simdat, simmr_in, simmr_out, groups = NULL, plotresid = TRUE,
  probs = c(0.025, 0.975))

Arguments

simmr_in

A simmr_input object.

groups

A numeric with the groups to plot if they are used, otherwise NULL.

plotresid

A logical which determines whether credibility residual plots are created.

probs

A numeric vector of two numbers giving the upper and lower predictive intervals.

simdata

A remix_PI object.

simmr_in

A simmr_output object.

Details

New samples should fall within the predictive intervals with 95 Model bias is indicated by consumer data that fall outside the predictive intervals. Bias may occur, among other things due to missed sources or incorrect fractionation estimates.

Value

A remix_PI object with

predint

predictive intervals for each group and tracer

resid

residuals for each group and tracer.

Author(s)

Christopher J. Brown


cbrown5/remixsiar documentation built on April 26, 2020, 12:40 a.m.