README.md

ppRep

ppRep is an R package for Bayesian estimation and testing of effect sizes based on original and replication study using a power prior framework for dynamic discounting of the original data. For more information, see the paper

Pawel, S., Aust, F., Held, L., and Wagenmakers, E.-J. (2023). Power priors for replication studies. TEST. doi:10.1007/s11749-023-00888-5

Installation

## CRAN version
install.packages("ppRep")

## from GitHub
## install.packages("remotes") # requires remotes package
remotes::install_github(repo = "SamCH93/ppRep")

Usage

library("ppRep")

## data from one replication of "Labels" experiment in Protzko et al. (2020)
to <- 0.2 # original SMD effect estimate
so <- 0.05 # original standard error
tr <- 0.09 # replication SMD effect estimate
sr <- 0.05 # replication standard error

## compute and plot posterior density with 95% HPD credible intervals
plotPP(tr = tr, sr = sr, to = to, so = so, CI = TRUE)

Plot of joint posterior distribution of power parameter and effect size.



Try the ppRep package in your browser

Any scripts or data that you put into this service are public.

ppRep documentation built on Oct. 20, 2023, 1:06 a.m.