compare {BBcor}R Documentation

Compare Bayesian bootstrapped correlations

Description

See lin_comb

Usage

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

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

[Package BBcor version 1.0.1 Index]