transformOutput {secrdesign} | R Documentation |
Transform Simulation Output
Description
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.
Usage
transformOutput(object, extractfn, outputtype = "predicted", ...)
Arguments
object |
output from |
extractfn |
function such as the ‘extractfn’ argument of |
outputtype |
character (see Details) |
... |
other arguments passed to |
Details
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.
Value
An object resembling the output from run.scenarios
but with transformed output.
The outputtype and class of the object are changed to match ‘outputtype’.
See Also
run.scenarios
,
estimateSummary
,
outputtype<-