exact_pvalue: Compute exact p-values for bootstrap or monte carlo samples

Description Usage Arguments Examples

View source: R/functions.R

Description

This uses the correct formula (r+1)/(n+1) for computing exact p-values, instead of r/n (where r is the number of samples greater than the mode of the samples, and n is the total number of samples). See citations.

Usage

1
exact_pvalue(samples)

Arguments

samples

vector of posterior or bootstrap samples

Examples

1

abnormally-distributed/abdisttools documentation built on May 5, 2019, 7:07 a.m.