Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The Bayesian playground. A package for learning Bayes factors

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

bayesplay/bayesplay

Repository files navigation

R-CMD-checkCRANdownloadscodecov

The goal of bayesplay is to provide an interface for calculating Bayesfactors for simple models. It does this in a way that makes thecalculations moretransparent and it is therefore useful as a teachingtools.

Installation

bayesplay is now on CRAN. You can install it with:

install.packages("bayesplay")

Or if you want to live on the edge, you can install the developmentversion fromGitHub with:

# install.packages("devtools")devtools::install_github("bayesplay/bayesplay")

Basic usage

Thebayesplay package comes with three basic functions for computingBayes factors.

  1. Thelikelihood() function for specifying likelihoods

  2. Theprior() function for specifying priors

  3. And theintegral() function

Currently the following distributions are supported for likelihoods andpriors

Priors

  1. Normal distribution (normal)

  2. Uniform distribution (uniform)

  3. Scaled and shiftedt distribution (student_t)

  4. Cauchy distributions (cauchy)

  5. Beta distribution (beta)

Likelihood

  1. Normal distribution (normal)

  2. Scaled and shiftedt distribution (student_t)

  3. Binomial distribution (binomial)

  4. Various noncentralt distributions, including:

    • Noncentralt distribution (noncentral_t)

    • Noncentralt distribution scaled for a paired samples/one sampleCohen’sd (noncentral_d)

    • Noncentralt distribution scaled for an independent samplesCohen’sd (noncentral_d2)

Worked examples

For worked examples of the basic usage seebasicusage. Orfor basic plot functionality seebasicplotting

About

The Bayesian playground. A package for learning Bayes factors

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp