Skip to content

Instantly share code, notes, and snippets.

View JoKeyser's full-sized avatar

Johannes Keyser JoKeyser

View GitHub Profile
@JoKeyser
JoKeyser / coding-principles.md
Last active February 18, 2026 13:24
Coding principles: Code review and code style

Coding principles

Important

This text is our team's initial draft for organizing internal code reviews. Our main focus is reviewing code for "one-off" analyses associated with a manuscript, as opposed to continuous reviewing of a shared code library. In our case, this text is part of a wider set of principles how we (want to) work, especially with code. Only the parts about code review and style are included below.

The text is published here to encourage experimentation and discussion with other teams. Feel free to copy and adapt it to your own needs.

@JoKeyser
JoKeyser / OSF-Preregistration-form.md
Last active September 21, 2025 11:34
OSF Preregistration template in Markdown

OSF Preregistration form

Important

This is a text-only Markdown version of the OSF Preregistration form. Upon completion, you can copy/paste your answers into the OSF web form to publish your preregistration.

Why a Markdown version? The OSF web form is unwieldy for writing and editing long texts, much less for coordinating between multiple authors. This Markdown version may help you prepare your preregistration, in a format that is easier to edit and version control. To coordinate contributions from multiple authors, you can use Git and GitLab, for example.

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 <j.keyser@donders.ru.nl>