| fitted.brma | R Documentation |
Extract in-sample fitted values from a fitted brma
object.
## S3 method for class 'brma'
fitted(
object,
unit = "estimate",
conditioning_depth = "marginal",
component = "location",
bias_adjusted = FALSE,
output_measure = NULL,
transform = NULL,
conditional = FALSE,
...
)
object |
a fitted brma object. |
unit |
output unit. Only |
conditioning_depth |
conditioning depth for location fitted values.
|
component |
fitted component to return. |
bias_adjusted |
whether location fitted values should adjust for
publication bias. Defaults to |
output_measure |
effect-size measure for location/effect predictions.
Defaults to the fitted measure. Supported conversions are among |
transform |
optional display transformation. Currently |
conditional |
whether to return fitted values from conditional posterior predictions for RoBMA product-space objects. |
... |
additional arguments. Currently only |
This method is a compact adapter around predict.brma. It
summarizes posterior prediction draws by their column means and returns a
base numeric vector, matching the usual fitted contract.
Use predict() directly when posterior draws or intervals are needed.
The default conditioning_depth = "marginal" corresponds to
predict(object, type = "terms") and matches the usual fitted-value
convention for meta-regression. For normal models,
conditioning_depth = "estimate" corresponds to BLUP means for the
observed estimates.
For component = "all", conditioning_depth,
output_measure, and transform apply only to the
location component. The scale component always returns
fitted \tau_i values.
A numeric vector of fitted values, or a named list with
location and scale components when component = "all".
predict.brma(), residuals.brma(), blup.brma()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.