Description Usage Arguments Details Value Warning See Also
Produces a Probability-Probability (P-P) plot of the fitted total catch that can be used to assess the model fit.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
fit |
an |
dataFrame |
a data frame with surveys as rows and variables as columns.
It should contain all variables required by |
subset |
an optional vector specifying a subset of surveys to be used to create the P-P plot. |
na.action |
a function which indicates what should happen when the data
contain missing values ( |
n.sims |
the number of datasets to simulate from the fitted model to
generate the confidence interval if |
ciprob |
the desired limits for the confidence interval added if
|
title |
an optional title for the plot. |
addCI |
whether to add a confidence interval to the plot (default is
|
progressBar |
whether to show a progress bar when calculating the confidence interval, since this can take some time. |
mu |
a matrix of abundance samples can optionally be provided, as
generated from |
rho |
a matrix of prevalence samples can optionally be provided, as
generated from |
seed |
set random seed to allow repeatable results. |
If addCI
is TRUE
, a confidence interval is found by Monte
Carlo simulation. n.sims
datasets of fish catches are simulated from
the fitted model, each using the same observed covariates, and the
P-P plot line is found for each. The confidence interval then
represents the extent covered by the central ciprob
proportion of
these.
If the observed data is typical of data simulated from the model, we would
expect the observed P-P plot line to fall within the confidence
interval ciprob * 100
% of the time.
If addCI
is TRUE
, the proportion of observed
P-P plot points within the confidence limits is printed to screen
and invisibly returned.
Generating the confidence interval can take some time,
especially if n.sims
is large.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.