powered by
Extract a vector of draws of a single variable.
extract_variable(x, variable, ...)# S3 method for default extract_variable(x, variable, ...)# S3 method for draws extract_variable(x, variable, ...)# S3 method for draws_rvars extract_variable(x, variable, ...)
# S3 method for default extract_variable(x, variable, ...)
# S3 method for draws extract_variable(x, variable, ...)
# S3 method for draws_rvars extract_variable(x, variable, ...)
A numeric vector of length equal to the number of draws.
(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(x, variable = "mu") str(mu)
Run the code above in your browser using DataLab