View source: R/surveyAveraging.RE.R
surveyAveraging.RE | R Documentation |
Function to smooth/interpolate survey data using a random effects/kalman filter model (RE).
surveyAveraging.RE(
maxYr,
srvData,
type = "biomass",
sex = "male",
category = "mature",
pdfType = "lognormal",
ci = 0.95,
modelPath = getPath2REM(),
verbose = FALSE,
showPlot = FALSE
)
maxYr |
|
srvData |
|
type |
|
sex |
|
category |
|
pdfType |
|
ci |
|
modelPath |
|
verbose |
|
showPlot |
|
This function uses an ADMB random effects model (originally developed by Jim Ianelli and subsequently modified by William Stockhausen) to smooth/interpolate survey data.
Smoothing is done using a Kalman Filter/Random Effects model written in ADMB (C++) code. The single estimated parameter is the ln-scale process error variance for annual changes in survey abundance/biomass modeled as a random walk process. The estimated time series is output.
list with a dataframe ('dfr') and another list ('lst') as elements. T he dataframe is the smoothed survey data, with columns
year = survey year
type = 'RE'
value = averaged or predicted value
lci = lower confidence interval
uci = upper confidence interval
The list contains other results from the model optimization, including
objFun = the final objective function value
maxGrad = the max gradient
sdrepSdLam = the estimated process error standard deviation, on the arithmetic scale
sdrepSdLam.sd = the standard deviation of the estimated process error standard deviation, on the arithmetic scale
and others
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.