Package 'prereg'

Title: R Markdown Templates to Preregister Scientific Studies
Description: Provides a collection of templates to author preregistration documents for scientific studies in PDF format.
Authors: Frederik Aust [aut, cre] , Lisa Spitzer [aut], Jeffrey R. Stevens [ctb] , Masataka Ogawa [ctb]
Maintainer: Frederik Aust <[email protected]>
License: GPL-3
Version: 0.5.0
Built: 2024-11-03 03:19:44 UTC
Source: https://github.com/crsh/prereg

Help Index


R Markdown Templates to Preregister Scientific Studies

Description

The provided R Markdown templates are based on the Center for Open Science Preregistration Challenge, the AsPredicted.org questions, a template suggested for social psychology by van 't Veer and Giner-Sorolla (2016), and the replication recipe suggested by Brandt et al. (2013).

System requirements

Before using prereg to create a preregistration document, make sure the following software is installed on your computer:

If you are running Windows, use MikTex if possible. Currently, pandoc and the Windows version of Tex Live don't seem to like each other. Make sure you install the complete—not the basic—version.

Author and Maintainer

Frederik Aust (frederik.aust at uni-koeln.de).

References

Brandt, M. J., IJzerman, H., Dijksterhuis, A., Farach, F. J., Geller, J., Giner-Sorolla, R., ... van 't Veer, A. (2014). The Replication Recipe: What makes for a convincing replication? Journal of Experimental Social Psychology, 50, 217–224. doi: 10.1016/j.jesp.2013.10.005 van 't Veer, A. E., & Giner-Sorolla, R. (2016). Pre-registration in social psychology—A discussion and suggested template. Journal of Experimental Social Psychology, 67, 2–12. doi: 10.1016/j.jesp.2016.03.004


Preregistration renderer

Description

Knit a PDF document using preregistration document template

Usage

prereg_pdf(...)

aspredicted_prereg(...)

brandt_prereg(...)

cos_prereg(...)

fmri_prereg(...)

psyquant_prereg(...)

prp_quant_prereg(...)

rr_prereg(...)

vantveer_prereg(...)

Arguments

...

additional arguments to pdf_document; template is ignored.

References

Bosnjak, M., Fiebach, C. J., Mellor, D., Mueller, S., O'Connor, D. B., Oswald, F. L., & Sokol-Chang, R. I. (2021). A template for preregistration of quantitative research in psychology: Report of the joint psychological societies preregistration task force. American Psychologist. http://dx.doi.org/10.1037/amp0000879

Brandt, M. J., IJzerman, H., Dijksterhuis, A., Farach, F. J., Geller, J., Giner-Sorolla, R., ... van 't Veer, A. (2014). The Replication Recipe: What makes for a convincing replication? Journal of Experimental Social Psychology, 50, 217–224. https://doi.org/10.1016/j.jesp.2013.10.005

Crüwell, S. & Evans, N. J. (2021). Preregistration in diverse contexts: a preregistration template for the application of cognitive models. Royal Society Open Science. 8:210155 https://doi.org/10.1016/j.jesp.2013.10.005

Flannery, J. E. (2020, October 22). fMRI Preregistration Template. Retrieved from https://osf.io/6juft

van 't Veer, A. E., & Giner-Sorolla, R. (2016). Pre-registration in social psychology—A discussion and suggested template. Journal of Experimental Social Psychology, 67, 2–12. https://doi.org/10.1016/j.jesp.2016.03.004

Examples

## Not run: 
# Create R Markdown file
rmarkdown::draft(
  "my_preregistration.Rmd"
  , "cos_prereg"
  , package = "prereg"
  , create_dir = FALSE
  , edit = FALSE
)

# Render file
rmarkdown::render("my_preregistration.Rmd")

## End(Not run)