View source: R/importance_sampling.R
weights.importance_sampling | R Documentation |
Extract importance sampling weights
## S3 method for class 'importance_sampling'
weights(object, ..., log = TRUE, normalize = TRUE)
object |
An object returned by |
... |
Ignored. |
log |
Should the weights be returned on the log scale? Defaults to
|
normalize |
Should the weights be normalized? Defaults to |
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.
# See the examples at help("psis")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.