Description Usage Arguments Warning See Also
View source: R/fcs2InteractivePrediction.R
Plots the posterior distribution of the abundance and prevalence components as well as the predictive distribution of a new fish catch at a survey characterised by model covariates that can be modified interactively. Controls are provided for each covariate in the model so that the change in predictive probabilities can be visualised as covariates are adjusted. The single EQR variable can additionally be displayed and class boundaries can be provided to colour the probabilities of each class.
1 | fcs2InteractivePrediction(fit, data, init.row, eqr = TRUE, boundaries = NULL)
|
fit |
an |
data |
a data frame with surveys as rows and variables as columns. It
should contain all variables required by |
init.row |
optionally, an integer corresponding to a row in |
eqr |
whether to give the distribution of the EQR variable.
Defaults to |
boundaries |
a vector of length 4 giving the EQR boundaries
separating the classes Bad, Poor, Good, Moderate
and High. These are used only to colour the plots with Bad
red and High blue. If |
This function requires the additional package rpanel for producing interactive controls.
fcs2InteractiveLikelihood
which produces a simpler
interactive demonstration of how the FCS2 ZINB
likelihood varies with model parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.