Learn R Programming

BayesSingleSub (version 0.6.2)

BayesSingleSub-package: Functions to obtain Bayes factor hypothesis tests and posterior samples of parameters for single case data.

Description

This package contains functions to compute Bayes factors for the mean difference, trend difference, and intercept difference in single case data sequences. Some functions also provide posterior samples of parameters and interval null Bayes factors.

Arguments

Details

Package:
BayesSingleSub
Type:
Package
Version:
0.6.1
Date:
2012-11-28
License:
GPL 2.0
LazyLoad:
yes
The following functions are currently implemented, with more to follow:

ttest.Gibbs.AR(): Compute Bayes factor for mean difference using Gibbs sampling and obtain posterior samples of parameters ttest.MCGQ.AR(): Compute Bayes factor for mean difference using monte carlo or gaussian quadrature integration trendtest.Gibbs.AR(): Compute Bayes factors for trend and intercept differences using Gibbs sampling and obtain posterior samples of parameters trendtest.MC.AR(): Compute Bayes factors for trend and intercept differences using monte carlo integration

References

De Vries, R. M. \& Morey, R. D. (submitted). Bayesian hypothesis testing Single-Subject Data. Psychological Methods.

R code guide: http://drsmorey.org/research/rdmorey/

Examples

Run this code
## See specific functions for examples

Run the code above in your browser using DataLab