Learn R Programming

Spower (version 0.6)

is.outside_CI: 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)

Value

logical

Arguments

P0

parameter to evaluate

CI

confidence interval

Author

Phil Chalmers rphilip.chalmers@gmail.com

See Also

is.CI_within, Spower

Examples

Run this code

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

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


Run the code above in your browser using DataLab