draws_matrix (see package
posterior)These are the posterior::as_draws() and posterior::as_draws_matrix()
methods for projection objects (returned by project(), possibly as
elements of a list). They extract the projected parameter draws and return
them as a draws_matrix. In case of different (i.e., nonconstant) weights
for the projected draws, a draws_matrix allows for a safer handling of
these weights (safer in contrast to the matrix returned by
as.matrix.projection()), in particular by providing the natural input for
posterior::resample_draws() (see section "Examples" below).
# S3 method for projection
as_draws_matrix(x, ...)# S3 method for projection
as_draws(x, ...)
An \(S_{\mathrm{prj}} \times Q\)
draws_matrix (see
posterior::draws_matrix()) of projected draws, with
\(S_{\mathrm{prj}}\) denoting the number of projected draws and
\(Q\) the number of parameters. If the projected draws have nonconstant
weights, posterior::weight_draws() is applied internally.
An object of class projection (returned by project(), possibly
as elements of a list).
Arguments passed to as.matrix.projection(), except for
allow_nonconst_wdraws_prj.
In case of the augmented-data projection for a multilevel submodel
of a brms::categorical() reference model, the multilevel parameters (and
therefore also their names) slightly differ from those in the brms
reference model fit (see section "Augmented-data projection" in
extend_family()'s documentation).