is.outside_CI: Evaluate whether parameter is outside a given confidence...

View source: R/util.R

is.outside_CIR Documentation

Evaluate whether parameter is outside a given confidence interval

Description

Returns TRUE if parameter reflecting a null hypothesis falls outside a given confidence interval. This is an alternative approach to writing an experiment that returns a p-value.

Usage

is.outside_CI(P0, CI)

Arguments

P0

parameter to evaluate

CI

confidence interval

Value

logical

Author(s)

Phil Chalmers rphilip.chalmers@gmail.com

See Also

is.CI_within, Spower

Examples


p0 <- .3
CI <- c(.2, .4)
is.outside_CI(p0, CI)

# complement indicates if p0 is within CI
!is.outside_CI(p0, CI)



Spower documentation built on June 8, 2025, 11:18 a.m.