Learn R Programming

bgms (version 0.1.6.2)

coef.bgmCompare: Extract Coefficients from a bgmCompare Object

Description

Returns posterior means for raw parameters (baseline + differences) and group-specific effects from a bgmCompare fit, as well as inclusion indicators.

Usage

# S3 method for bgmCompare
coef(object, ...)

Value

A list with components:

main_effects_raw

Posterior means of the raw main-effect parameters (variables x [baseline + differences]).

pairwise_effects_raw

Posterior means of the raw pairwise-effect parameters (pairs x [baseline + differences]).

main_effects_groups

Posterior means of group-specific main effects (variables x groups), computed as baseline plus projected differences.

pairwise_effects_groups

Posterior means of group-specific pairwise effects (pairs x groups), computed as baseline plus projected differences.

indicators

Posterior mean inclusion probabilities as a symmetric matrix, with diagonals corresponding to main effects and off-diagonals to pairwise effects.

Arguments

object

An object of class bgmCompare.

...

Ignored.