Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JoKeyser
JoKeyser / anovaBF_example_with_rpy2.py
Last active October 18, 2018 18:09
Re-creation of the anovaBF example from R's BayesFactor package, using Python and rpy2
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This re-creates the anovaBF example from BFManual() in Python with rpy2,
and converts the BayesFactor in a pandas DataFrame.
See in R: library(BayesFactor), BFManual().
COPYRIGHT INFORMATION
Copyright 2018 Johannes Keyser <[email protected]>