View source: R/TMBoneStepPredict.R
| TMBoneStepPredict | R Documentation |
Calculate one-step-ahead (OSA) residuals for a latent variable model. (Modified from TMB version to allow easier parallel computations)
TMBoneStepPredict(
obj,
observation.name = NULL,
data.term.indicator = NULL,
method = c("oneStepGaussianOffMode", "fullGaussian", "oneStepGeneric",
"oneStepGaussian", "cdf"),
subset = NULL,
conditional = NULL,
discrete = NULL,
discreteSupport = NULL,
range = c(-Inf, Inf),
seed = 123,
parallel = FALSE,
ncores = 2,
trace = TRUE,
reverse = (method == "oneStepGaussianOffMode"),
...
)
obj |
Output from |
observation.name |
Character naming the observation in the template. |
data.term.indicator |
Character naming an indicator data variable in the template (not required by all methods - see details). |
method |
Method to calculate OSA (see details). |
subset |
Index vector of observations that will be added one by one during OSA. By default |
conditional |
Index vector of observations that are fixed during OSA. By default the empty set. |
discrete |
Are observations discrete? (assumed FALSE by default) |
discreteSupport |
Possible outcomes of discrete distribution ( |
range |
Possible range of the observations. |
seed |
Randomization seed (discrete case only). If |
parallel |
Run in parallel using the |
ncores |
number of threads to run in parallel. Ignored if parallel = FALSE |
trace |
Trace progress? |
reverse |
Do calculations in opposite order to improve stability ? (currently enabled by default for |
... |
Control parameters for OSA method |
data.frame with OSA standardized residuals
in column residual. Depending on the method the output may
also include OSA expected observation in column mean.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.