transformOutput | R Documentation |
Transform output component of simulation output from run.scenarios
.
Typically this replaces an entire saved model fit with a table of estimates from that fit.
transformOutput(object, extractfn, outputtype = "predicted", ...)
object |
output from |
extractfn |
function such as the ‘extractfn’ argument of |
outputtype |
character (see Details) |
... |
other arguments passed to |
Each replicate of each scenario is transformed using ‘extractfn’, which should accept as input the object returned by the extractfn of the original call to run.scenarios
. As a typical example, sims <- run.scenarios(..., fit = TRUE, extractfn = identity)
returns outputs of class ‘secr’ and could be followed by sims2 <- transformOutput(sims, predict)
; sims2
may be used as input to estimateSummary
and other summary functions.
An object resembling the output from run.scenarios
but with transformed output.
The outputtype and class of the object are changed to match ‘outputtype’.
run.scenarios
,
estimateSummary
,
outputtype<-
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.