compute_BF_Stan: Sample and compute BF for various models using Stan

Description Usage Arguments Details Value

View source: R/stan_BF.R

Description

Sample and compute BF for various models using Stan.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
compute_BF_Stan(
  data,
  model,
  hyperpriors,
  n.iter = 1000,
  n.burnin = 200,
  n.chains = 1,
  n.cores = 1,
  data_other = NULL,
  silent = FALSE,
  ...
)

Arguments

data

a list containing mtx, idx.ref, idx.quest

model

the model shortname (e.g. 'DirDir', 'DirFNorm')

hyperpriors

a list containing hyperparameter definitions

n.iter

number of HMC iterations (default: 1000)

n.burnin

number of HMC burn-in iterations (default: 200)

n.chains

number of HMC chains (default: 1)

n.cores

number of cores to use for HMC and bridge sampling (default: 1)

data_other

a list containing additional data for H_1 and H_2 models (default: NULL)

silent

if TRUE, do not print any progress

...

list of additional parameters to pass to rstan::sampling() method

Details

Two-sample model:

Hypotheses:

Return a stanBF object with these properties:

For Dirichlet likelihoods, the returned object is a stanBF_turn, inheriting from stanBF. These objects contain also:

The object contains methods to plot and to extract samples.

Value

a stanBF object


lgaborini/rstanBF documentation built on March 10, 2021, 1:12 p.m.