runRECA | R Documentation |
Runs eca.estimate
and eca.predict
.
Not to be confused with RunRecaEstimate
,
which is primarily intended for including in Stox projects.
runRECA(
RecaObj,
nSamples,
burnin,
lgamodel = "log-linear",
fitfile = "fit",
predictfile = "pred",
resultdir = NULL,
thin = 10,
delta.age = 0.001,
seed = NULL,
caa.burnin = 0
)
RecaObj |
|
nSamples |
number of MCMC samples that will be made available for |
burnin |
number of MCMC samples run and discarded by |
lgamodel |
The length age relationship to use for length-age fits (options: "log-linear", "non-linear": Schnute-Richards model). See documentation for |
fitfile |
name of output files in resultdir. See documentation for |
predictfile |
name of output files in resultdir. See documentation for |
resultdir |
a directory where Reca may store temp-files |
thin |
controls how many iterations are run between each samples saved. This may be set to account for autocorrelation introduced by Metropolis-Hastings simulation. see documentation for |
delta.age |
see documentation for |
seed |
see documentation for |
caa.burnin |
see documentation for |
eca.estimate
performs Markov-chain Monte Carlo (MCMC) simulations to determine maximum likelihood of parameters for the given samples.
eca.predict
samples the posterior distributions of parameters estimated in eca.estimate
,
in order to obtain proportinos of catches and fish parameters.
Using these parameters and the given total landings, predictions of distribution of catch-parameter distributions will be calculated.
If resultdir is NULL, a temporary directory will be created for its purpose. This will be attempted removed after execution. If removal is not successful a warning will be issued which includes the path to the temporary directory.
RecaResult
results from Reca run.
data(recaDataExample)
# run (produce recaPrediction as in data(recaPrediction))
## Not run: recaPrediction <- runRECA(recaDataExample, 500, 5000)$prediction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.