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

Bayes Factor Functions

NotificationsYou must be signed in to change notification settings

rshudde/BFF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bayes Factor Functions

CRAN_Status_Badge

This package provides the Bayes Factor values for different effect sizes from 0 to 1. A small effect size is usually considered from 0.2 to 0.5, medium effect sizes from 0.5 to 0.8, and large effect sizes as greater than 0.8.

Using this package is very similar to using the familiar t, z, chi^2, and F tests in R. You will need the same information - the test statistic, degrees of freedom, and sample size. A graph is produced that shows the BFF curve over the different effect sizes.

For evaluating evidence from multiple studies (see 'Bayes factor functions', 2023 (arxiv)), the parameter 'r' can also be set. The default value for r is 1, but 'r' can be suggested that maximizes the bayes factor at each tau by setting the 'maximization' argument in each test to "TRUE."

Installation

The R package 'BFF' is available from CRAN, use the commands below to install the most recent Github version.

# Plain installationdevtools::install_github("rshudde/BFF") # BFF package

Example

library(BFF)z_BFF_one = z_test_BFF(z_stat = 2.5, n = 50) #one sample z-testz_BFF_two = z_test_BFF(z_stat = 2.5, one_sample = FALSE, n1 = 50, n2 = 50) #two sample z-testplot(z_BFF_two) #to view the plot of BFF vs the maximized omega (here for the two sample z-test)

About

Bayes Factor Functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp