calculateDifferences {quid} | R Documentation |
Calculate differences between conditions specified in constraints
Description
Calculates the differences between the conditions specified in the constraints
of a BFBayesFactorConstraint
object for each individual.
Usage
calculateDifferences(x, effect = c("estimate", "observed"))
Arguments
x |
an object of class |
effect |
the effect differences to be calculated. |
Value
calculateDifferences
returns an object of class
tbl_df
, with columns for ID, type of effect,
specified constraint, and estimates.
Examples
## Not run:
data(stroop)
resStroop <- constraintBF(rtS ~ ID*cond,
data = stroop,
whichRandom = "ID",
ID = "ID",
whichConstraint = c(cond = "2 > 1"),
rscaleEffects = c("ID" = 1, "cond" = 1/6, "ID:cond" = 1/10))
calculateDifferences(resStroop, effect = "estimate")
calculateDifferences(resStroop, effect = "observed")
## End(Not run)
[Package quid version 0.0.1 Index]