Skip to content

metapsy-project/metapsyData

Repository files navigation

metapsyData

R CMD Check DOI Netlify Status

This package allows you to access the meta-analytic psychotherapy databases in R. To install the metapsyData package, use the following code:

if (!require("devtools"))
  install.packages("devtools")
devtools::install_github("metapsy-project/metapsyData")

The metapsyData package allows to access the Metapsy meta-analytic psychotherapy databases direct in your R environment. Once installed, simply use the getData function and insert the database shorthand to save the data locally. The documentation of the package is also hosted by rdrr.io.

To search for available databases in metapsyData and their shorthands, run the listData() function. All databases included in metapsyData come with an extensive documentation entry on docs.metapsy.org.

Usage Example

# List all available databases
listData()

# Get latest version of the 'inpatients' database
d <- getData("depression-inpatients")

# Show variable description
d$variableDescription()

# Open online documentation
d$openDocumentation()

# Analyze using metapsyTools
library(metapsyTools)
runMetaAnalysis(d)

Repository Rules

You are allowed to use, fork and share the package. Please note that we will not consider pull requests or issue reports from external users who are not part of the Metapsy project collaboration.