samp_bf: Sample multiple datasets and compute the Bayes factor in each

Description Usage Arguments Value

View source: R/utils.R

Description

Sample multiple datasets and compute the Bayes factor in each

Usage

1
samp_bf(datasets, n, ngroup, means, sds, h1, h2, scale, nsamp)

Arguments

datasets

A number. The number of datasets to simulate for each sample size n

n

A number. The group sample size to be used in data simulation

ngroup

A number. The number of groups.

means

A vector of expected population means.

sds

A vector of expected population standard deviations Note, when standardized, this is a vector of 1s

h1

A constraint matrix defining H1.

h2

A constraint matrix defining H2.

scale

A number specifying the prior scale.

nsamp

A number. The number of samples for the fit and complexity See ?BayesianPower::calc_fc

Value

A vector of Bayes factors BF12 for each of the simulated datasets


BayesianPower documentation built on July 1, 2020, 6:02 p.m.