https://github.com/cjvanlissa/bain
Bayes Factors for Informative Hypotheses
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 5 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.7%) to scientific vocabulary
Last synced: 9 months ago
·
JSON representation
Repository
Bayes Factors for Informative Hypotheses
Basic Info
- Host: GitHub
- Owner: cjvanlissa
- License: gpl-3.0
- Language: R
- Default Branch: master
- Size: 2.44 MB
Statistics
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 11
- Releases: 0
Created over 7 years ago
· Last pushed about 2 years ago
Metadata Files
Readme
Changelog
License
Code of conduct
README.Rmd
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://cran.r-project.org/package=bain)
[](https://github.com/cjvanlissa/bain/actions/workflows/R-CMD-check.yaml)
[](https://cran.r-project.org/package=bain)
[](https://github.com/cjvanlissa/bain/actions)
[](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html)
[](https://bestpractices.coreinfrastructure.org/projects/3871)
# bain
Bain stands for Bayesian informative hypothesis evaluation. It computes Bayes factors for informative hypotheses in a wide variety of statistical models. Just run your analysis as usual, and then apply bain to the output. A tutorial is available at [DOI:10.1037/met0000201](https://doi.org/10.1037/met0000201). A sequel with the focus on Structural Equation Models is available at https://doi.org/10.1080/10705511.2020.1745644.
## Installation
Install the latest release version of `bain` from CRAN:
```{r cran-installation, eval = FALSE}
install.packages("bain")
```
You can also install the latest development version of `bain` from GitHub. This requires a working toolchain, to compile the Fortran source code. [Step 3 in this tutorial](https://cjvanlissa.github.io/worcs/articles/setup.html) explains how to set up the toolchain. Then, run:
```{r github-installation, eval = FALSE}
install.packages("devtools")
devtools::install_github("cjvanlissa/bain")
```
## Workflow
Add bain to your existing R workflow, and obtain Bayes factors for your familiar R analyses! Bain is compatible with the pipe operator. Here is an example for testing an informative hypothesis about mean differences in an ANOVA:
```{r example, eval = TRUE, message = FALSE}
# Load bain
library(bain)
# dplyr to access the %>% operator
library(dplyr)
# Iris as example data
iris %>%
# Select outcome and predictor variables
select(Sepal.Length, Species) %>%
# Add -1 to the formula to estimate group means, as in ANOVA
lm(Sepal.Length ~ -1 + Species, .) %>%
bain("Speciessetosa < Speciesversicolor = Speciesvirginica;
Speciessetosa < Speciesversicolor < Speciesvirginica")
```
## Documentation
Every user-facing function in the package is documented, and the documentation can be accessed by running `?function_name` in the R console, e.g., `?bain`.
Moreover, you can read the *Introduction to bain* vignette by running `vignette("Introduction_to_bain", package = "bain")`
## Citing bain
You can cite the R-package with the following citation:
> Gu, X., Hoijtink, H., Mulder, J., & van Lissa, C. (2019). bain: Bayes factors for informative hypotheses. (Version 0.2.3) [R package]. https://CRAN.R-project.org/package=bain
## Contributing and Contact Information
If you have ideas, please get involved. You can contribute by opening an issue on GitHub, or sending a pull request with proposed features. Contributions in code must adhere to the [tidyverse style guide](https://style.tidyverse.org/).
* File a GitHub issue [here](https://github.com/cjvanlissa/bain)
* Make a pull request [here](https://github.com/cjvanlissa/bain/pulls)
By participating in this project, you agree to abide by the [Contributor Code of Conduct v2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
Owner
- Name: C. J. van Lissa
- Login: cjvanlissa
- Kind: user
- Company: Utrecht University
- Repositories: 22
- Profile: https://github.com/cjvanlissa
Developmental datascientist, studying mothers' and fathers' unique roles in children's socio-emotional development.
GitHub Events
Total
- Issues event: 1
- Watch event: 1
- Issue comment event: 4
Last Year
- Issues event: 1
- Watch event: 1
- Issue comment event: 4
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 18
- Total pull requests: 27
- Average time to close issues: 6 months
- Average time to close pull requests: 9 days
- Total issue authors: 6
- Total pull request authors: 4
- Average comments per issue: 1.67
- Average comments per pull request: 0.3
- Merged pull requests: 19
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 4.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- cjvanlissa (11)
- koenderks (2)
- herberthoijtink (2)
- barracuda156 (1)
- thomvolker (1)
- juliuspfadt (1)
Pull Request Authors
- herberthoijtink (16)
- cjvanlissa (7)
- CvZundert (2)
- xingu123 (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
DESCRIPTION
cran
- R >= 3.0.0 depends
- stats * depends
- lavaan * imports
- MASS * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
.github/workflows/rhub.yaml
actions
- r-hub/actions/checkout v1 composite
- r-hub/actions/platform-info v1 composite
- r-hub/actions/run-check v1 composite
- r-hub/actions/setup v1 composite
- r-hub/actions/setup-deps v1 composite
- r-hub/actions/setup-r v1 composite