fixef: Extract Fixed-Effects Estimates

Description Usage Arguments Value Note Examples

Description

Extract the fixed-effects from a blsmeta object.

Usage

1
2
## S3 method for class 'blsmeta'
fixef(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 data frame with either the summarized or (un)summarized posterior samples.

Note

Note these are equivalent to "population-level" effects (as used in the R package brms)

Examples

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

# sample posterior
fit <-  blsmeta(yi = yi, vi = vi, 
                mods = ~ color,  
                data = gnambs2020)

# fixed effects                 
fixef(fit)

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