Description Usage Arguments Warning See Also Examples
View source: R/fcs2InteractiveLikelihood.R
Creates a plot of the FCS2 model likelihood with interactive
controls that allow the model parameters to be adjusted. The likelihood
represents the probability of obtaining a single fish count and the controls
allow you to see how these probabilities change with the parameters. The
function can visualise either the zero-inflated negative binomial
(ZINB) distribution (see zinbinom
) of the single catch
C in the original EA FCS2 model or the
ZINB distribution of the total catch T over all passes from
the multiple-pass FCS2 model.
1 2 3 4 5 6 7 8 9 10 11 12 |
multipass |
If |
eqr |
whether to display the EQR value. |
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 plot with Bad red
and High blue. If |
r.limit, mu.limit, rho.limit, a.limit |
vectors of giving the lower and upper limits for the interactive controls for the shape parameter r, the abundance μ, the prevalence rho and the survey area a respectively. |
d.limit, q.limit |
vectors of giving the lower and upper limits for the
interactive controls for the number of runs d and the catch
probability q respectively. These are used only if |
c.limit |
vector of giving the lower and upper limit for the
interactive control for the single catch. This is used only if |
This function requires the additional package rpanel for producing interactive controls.
fcs2InteractivePrediction
which plot predictions from
a fitted FCS2 model with interactive controls to show how the
predictions change when covariates are varied.
1 2 3 4 5 6 7 8 9 10 | ## Interactive likelihood of total catch with EQR given against class boundaries
# only run example if R is running interactively
if (interactive()) {
# define WFD class boundaries
boundaries <- c(0.001, 0.01, 0.25, 0.5)
# create interactive plot
fcs2InteractiveLikelihood(multipass=TRUE, eqr=TRUE, boundaries=boundaries)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.