| BFBayesFactorConstraint-class {quid} | R Documentation |
S4 class for representing Bayes factor model comparisons and the Bayes factor for user-defined constraints
Description
BFBayesFactorConstraint is a S4 class that represents the Bayes factors
of multiple model comparisons and the Bayes factor of all individual effects
adhering to user-defined constraints. Furthermore, it also has slots
defined for representing the design matrices of the constraints model, and
for representing prior and posterior estimates.
Slots
generalTestObjan object of class
BFBayesFactorrepresenting the model comparisons. All S4 methods as defined inBFBayesFactor-classcan be used.constraintsan object of class
BFConstraint-class.individualEffectsa list containing a named vector for each level of the effect defined in the constraints. Effects are comprised of the common effect plus the individual deviation from it.
posteriorMeana named numeric giving the mean of the common effect.
posteriorSDa named numeric giving the standard deviation of individual effects.
totalThetasa list containing a
data.framefor each level of the effect defined in the constraints. Rows are sampling iterations and columns comprised of individual estimates plus the common effect estimates.mcmcFullan object of class
BFmcmc, containing the MCMC samples from the posterior.designIndecesa list giving the column indeces of the mcmcFull that were used to calculate the estimates of interest.
observedEffectsa list containing a named vector for each level of the effect defined in the constraints. Values are the mean observed effect for each individual.