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, 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


[Package BayesianPower version 0.2.3 Index]