coef.blsmeta: Extract Group-Specific Coefficients

Description Usage Arguments Value Examples

View source: R/coef_blsmeta.R

Description

Extract the group-specific coefficients, defined as the sum of the fixed effects and corresponding random effects.

Usage

1
2
## S3 method for class 'blsmeta'
coef(object, summary = TRUE, cred = 0.95, digits = 3, ...)

Arguments

object

An object of class blsmeta.

summary

logical. Should the posterior samples be summarized (defaults to TRUE)?

cred

numeric. credible interval (defaults to 0.95).

digits

numeric. The desired number of digits for the summarized estimates (defaults to 3).

...

Currently ignored.

Value

A list of class blsmeta. When summary = TRUE, each object is a data frame including the summarized posterior samples. When summary = FALSE, each object is a matrix with the posterior samples.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(psymetadata)

dat <- gnambs2020

fit <- blsmeta(yi = yi,
               vi = vi,
               es_id = es_id,
               data = dat)

coef(fit)

donaldRwilliams/blsmeta documentation built on Dec. 20, 2021, 12:12 a.m.