% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extractors.R
\name{extract_random_effects}
\alias{extract_random_effects}
\title{Extract random-effect summaries}
\usage{
extract_random_effects(object, what = c("sd", "mean_u", "draws_u"))
}
\arguments{
\item{object}{A \code{bvarnet} object returned by \code{\link{bvar}}.}

\item{what}{Character. What to extract:
\describe{
\item{\code{"sd"}}{Data frame of random-effect SD summaries
(from \code{extract_param}).}
\item{\code{"mean_u"}}{3D array \code{[node, subject, re]} of
posterior means of subject-level effects.}
\item{\code{"draws_u"}}{4D array \code{[draw, node, subject, re]}
of full posterior draws.}
}}
}
\value{
Depends on \code{what}; see above.
}
\description{
Returns random-effect standard deviations (group-level variance),
subject-level posterior means, or the full posterior draws of the
subject-level random effects \code{u}.
}
