samp_bf {BayesianPower}R Documentation

Sample multiple datasets and compute the Bayes factor in each

Description

Sample multiple datasets and compute the Bayes factor in each

Usage

samp_bf(datasets, n, ngroup, means, sds, h1, h2, comp, 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 (standardized).

sds

A vector of expected population effect sizes. Note, when standardized, this is a vector of 1s

h1

A constraint matrix defining H1.

h2

A constraint matrix defining H2.

comp

A vector of the complexities of H1 and H2.

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


[Package BayesianPower version 0.1.6 Index]