weights.importance_sampling: Extract importance sampling weights
Description
Extract importance sampling weights
Usage
# S3 method for importance_sampling
weights(object, ..., log = TRUE, normalize = TRUE)
Arguments
log
Should the weights be returned on the log scale? Defaults to
TRUE
.
normalize
Should the weights be normalized? Defaults to TRUE
.
Value
The weights()
method returns an object with the same dimensions as
the log_weights
component of object
. The normalize
and log
arguments control whether the returned weights are normalized and whether
or not to return them on the log scale.
Examples
Run this code# NOT RUN {
# See the examples at help("psis")
# }
Run the code above in your browser using DataLab