metapsyData
This package allows you to access the Metapsy meta-analytic psychotherapy databases in R. To install the metapsyData package, use the following code:
if (!require("remotes"))
install.packages("remotes")
remotes::install_github("metapsy-project/metapsyData")
The metapsyData package allows to access the Metapsy meta-analytic psychotherapy databases directly in your R environment. Once installed, simply use the getData
function and insert the database shorthand to save the data locally.
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.
Databases loaded into the R environment can directly be analyzed using functions of the metapsyTools package.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.