powered by
Extract an iterations x chains matrix of draws of a single variable. This is primarily used for convergence diagnostic functions such as rhat().
rhat()
extract_variable_matrix(x, variable, ...)# S3 method for default extract_variable_matrix(x, variable, ...)# S3 method for draws extract_variable_matrix(x, variable, ...)# S3 method for draws_rvars extract_variable_matrix(x, variable, ...)
# S3 method for default extract_variable_matrix(x, variable, ...)
# S3 method for draws extract_variable_matrix(x, variable, ...)
# S3 method for draws_rvars extract_variable_matrix(x, variable, ...)
A matrix with dimension iterations x chains.
matrix
(draws) A draws object or another R object for which the method is defined.
draws
(string) The name of the variable to extract.
Arguments passed to individual methods (if applicable).
x <- example_draws() mu <- extract_variable_matrix(x, variable = "mu") dim(mu) rhat(mu)
Run the code above in your browser using DataLab