rhat_max | R Documentation |
Calculates the largest R-hat statistic across all variables and chain
statistics for the it
most recent iterations
rhat_max(mids, n = 1L)
mids |
A |
n |
The number of recent iterations for which R-hat should be calculated. If this is larger than the total number of iterations, it is truncated. |
A scalar double
containing the maximum R-hat statistic
# Create `mids` object
mids <- mice::mice(mice::nhanes)
# Get max R-hat for most recent 2 iterations
rhat <- rhat_max(mids, n = 2L)
rhat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.