Sample multiple datasets and compute the Bayes factor in each
samp_bf(datasets, n, ngroup, means, sds, h1, h2, scale, nsamp)
A number. The number of datasets to simulate for each
sample size n
A number. The group sample size to be used in data simulation
A number. The number of groups.
A vector of expected population means.
A vector of expected population standard deviations Note, when standardized, this is a vector of 1s
A constraint matrix defining H1.
A constraint matrix defining H2.
A number specifying the prior scale.
A number. The number of samples for the fit and complexity
See ?BayesianPower::calc_fc
A vector of Bayes factors BF12 for each of the simulated datasets