select.stats
is used to select a particular vector of numeric
values for summarization. The `parameter' argument indexes a row in the
data.frame for one replicate (i.e., one `real' parameter). Each
`statistic' is either a column in that data.frame or a statistic derived
from a column.
If statistics
is not specified, the default is to use all numeric
columns in the input (i.e., c(`estimate', `SE.estimate', `lcl', `ucl')
for predict and c(`beta', `SE.beta', `lcl', `ucl') for coef).
statistics
may include any of `estimate', `SE.estimate', `lcl',
`ucl', 'true', `RB', `RSE', `COV' and `ERR' (for outputtype `coef' use `beta' and
`SE.beta' instead of `estimate and `SE.estimate'). `true' refers to the
known parameter value used to generate the data.
The computed statistics are:
Statistic | Name | Value | |
RB | Relative bias | (estimate - true) / true | |
RSE | Relative SE | SE.estimate / estimate | |
ERR | Absolute deviation | abs(estimate - true) | |
COV | Coverage | (estimate > lcl) & (estimate < ucl) | |
`RB', `COV' and `ERR' relate an estimate to the known (true) value of
the parameter in object$scenarios
. They are computed only when a
model has been fitted without method = `none'.
`COV' remains binary (0/1) in the output from select.stats
; the
result of interest is the mean of this statistic across replicates (see
summary.secrdesign
). Similarly, `ERR' is used with field `rms'
in summary.secrdesign
to compute the
root-mean-squared-error RMSE.
find.param
and find.stats
may be used to `peek' at objects
of class `estimatetables' and `selectedstatistics' respectively to
recall the available parameter estimates or `statistics'.
An attempt is made to extract true
automatically if it is not provided. This does not always work (e.g. with extractfn region.N
, region differing from the mask, and a heterogeneous density model). Check this by including ``true'' as a statistic to summarise (see Examples).