RBF_Ftest: Calculate a Replication Bayes Factor for F-Tests.

Description Usage Arguments Details Value References Examples

Description

RBF_Ftest calculates a Replication Bayes Factor for F-Tests from balanced fixed effect, between subject ANOVA designs (Harms, 2018).

Usage

1
2
RBF_Ftest(F.orig, df.orig, N.orig, F.rep, df.rep, N.rep, M = 1e+05,
  store.samples = FALSE)

Arguments

F.orig

F-statistic from the original study.

df.orig

Numeric vector containing the degrees of freedom for the F-test from the original study.

N.orig

Total number of observations in the original study.

F.rep

F-statistic from the replication study.

df.rep

Numeric vector containing the degrees of freedom for the F-Test from the replication study.

N.rep

Total number of observations in the replication study.

M

Number of draws from the posterior distribution to approximate the marginal likelihood.

store.samples

If TRUE, the samples of the original's posterior distribution are stored in the return object.

Details

The Replication Bayes Factor is a marginal likelihood ratio between two positions (see Verhagen & Wagenmakers, 2014):

The Bayes factor is estimated through Importance Sampling (Gamerman & Lopes, 2006). The importance density is half-normal with parameters estimated from the posterior distribution. Posterior distribution is sampled using Metropolis-Hastings from MCMCpack::MCMCmetrop1R.

Value

An ReplicationBF object containing the value of the Replication Bayes Factor in bayesFactor.

References

Examples

1
2
3
4
## Not run: 
RBF_Ftest(27.0, c(3, 48), 52, 3.2, c(3, 33), 37)

## End(Not run)

neurotroph/ReplicationBF documentation built on May 28, 2019, 3:39 p.m.