compare: Compare Bayesian bootstrapped correlations

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

See lin_comb

Usage

1
compare(lin_comb, obj, cred = 0.9, rope = NULL, contrast = NULL)

Arguments

lin_comb

A string specifying a linear combination of variables, or a list of variable names if using contrast.

obj

An object of class BGGM, bbcor, or a data.frame of posterior samples.

cred

The level for which a credible interval should be computed.

rope

Specify a ROPE. Optional.

contrast

A contrast matrix specifying which combinations to test. Optional.

Value

An object of class bayeslincom

Examples

1
2
3
4
5
6
7
Y <- mtcars[, 1:3]
bb <- bbcor(Y)
bb_compare <- compare("mpg--cyl > mpg--disp",
                     obj = bb,
                     cred = 0.90,
                     rope = c(-0.1, 0.1))
bb_compare

BBcor documentation built on Oct. 14, 2021, 5:22 p.m.