compare {BBcor} | R Documentation |
See lin_comb
compare(lin_comb, obj, cred = 0.9, rope = NULL, contrast = NULL)
lin_comb |
A string specifying a linear combination of variables, or a list of variable names if using |
obj |
An object of class |
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. |
An object of class bayeslincom
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