Code from: Calibrating P-values in ecology: A practical framework for integrating prior plausibility into statistical inference
收藏DataONE2026-04-08 更新2026-05-19 收录
下载链接:
https://search.dataone.org/view/sha256:9544c8f9c47697933c7f3548a11419e106f3055fb7ee89f636d230258bf0b389
下载链接
链接失效反馈官方服务:
资源简介:
This repository contains R code implementing the pâvalue calibration method presented in the associated article. The core function, min_posterior, takes a pâvalue and the prior probability of the alternative hypothesis and returns the minimum posterior probability of the null hypothesis, using a Bayes factor calibration based on Sellke et al. (2001). The code includes input checks, example calls for different prior plausibilities, and a short script to visualize how the minimum posterior probability of the null changes as a function of the pâvalue for a given prior. This resource is intended as a practical implementation of the theoretical framework in the paper, allowing ecologists to translate conventional pâvalues into calibrated measures of evidence that explicitly incorporate prior plausibility.
, , # Code from: Calibrating P-values in ecology: A practical framework for integrating prior plausibility into statistical inference
## Overview
This repository contains R code implementing the p-value calibration method introduced in the article: Guariento, R. D., Gripp, A., Caliman, A. (2026). *Calibrating P-values in ecology: a practical framework for integrating prior plausibility into statistical inference*. Oikos.
The main purpose of the code is to provide a practical tool for converting conventional p-values into minimum posterior probabilities of the null hypothesis, explicitly incorporating the prior plausibility of the alternative hypothesis.
## Contents
* `function_code.R`: R script defining the function `min_posterior` and example usage.
## Description of the function
`min_posterior(p, prior_alt)` computes the minimum posterior probability of the null hypothesis $$H_0$$ given:
* `p`: a p-value from a statistical test (0 < p < 1).
* `prior_alt`: the prior probability of ..., ,
创建时间:
2026-04-09



