create_EPA_intervalTF: Create Encompassing Prior Interval Test Function

View source: R/TestFunctions.R

create_EPA_intervalTFR Documentation

Create Encompassing Prior Interval Test Function

Description

Convenience function for using the encompassing prior test function in the case when an interval is to be tested. The null hypothesis is that all of the effect parameters are within the interval.

Usage

create_EPA_intervalTF(lower, upper)

Arguments

lower

The lower end of the interval to be used. Single-sided intervals can be constructed by using -Inf.

upper

The upper end of the interval to be used. Single-sided intervals can be constructed by using Inf.

Value

A function that can be passed as the testFunction argument of, e.g., testHypothesis.

Examples

## Not run: 
tf = create_EPA_intervalTF(-0.5, 0.5)
testHypothesis(prior, post, fact, "f", testFunction = tf)

## End(Not run)

hardmanko/CMBBHT documentation built on June 9, 2022, 12:44 a.m.