restrict: Compute BFs for restricted models

Description Usage Arguments Value Author(s)

Description

Compute BFs for restricted models

Usage

1
2
restrict(BF, ..., .index = 1, .iterations = 10000, .prior = NULL,
  .niceNames = TRUE)

Arguments

BF

an object returned by any of the BayesFactor modeling functions

...

dplyr::filter-like logical arguments by which the model will be restricted.

.index

which BF mddel to test?

.iterations

how many posterior iterations?

.prior

the prior probability of the restricted model. If not speficied, will be estimated.

.niceNames

whould the coeff names be a little nicer?

Value

A list with two data.frames:

  1. probability - containing the prior and posterior probabilities.

  2. log(BFs) - containing the log of the BFs for the model.

Author(s)

Mattan S. Ben-Shachar


mattansb/BFEffect documentation built on June 7, 2019, 8:49 p.m.