nonzeroness: Describe where intervals lie in relation to zero

Description Usage Arguments Value

View source: R/helper_functions.R

Description

This is a helper function used by gg_coefsplot to colour intervals based on where they lie in relation to zero. It returns a value of 0.0 for intervals centred on zero; values between 0.0 and 1.0 for intervals containing zero away from their centre; and 1.0 for intervals that exclude zero. This assumes that the intervals represent symmetrical distributions, which often will not be the case.

Usage

1
nonzeroness(lowers, uppers)

Arguments

lowers

A vector of lower bounds.

uppers

A vector of upper bounds the same length as lowers.

Value

A vector of nonzeroness values.


mbedward/ggboral documentation built on June 27, 2020, 10:15 a.m.