extremality: Compute fraction of a Bernoulli variance

View source: R/extremality.R

extremalityR Documentation

Compute fraction of a Bernoulli variance

Description

Works efficiently on matrices and DelayedMatrix objects. Note that it is possible for "raw" extremality to be greater than 1, so this function does a second pass to correct for this.

Usage

extremality(x, raw = FALSE)

Arguments

x

A rectangular object with proportions in it

raw

Skip the correction pass? (DEFAULT: FALSE)

Value

The extremality of each row (if more than one) of the object

Examples


  x <- rnorm(100, mean=0.5, sd=0.15)
  x <- matrix(x, nrow=50, ncol=2)

  ext <- extremality(x, raw=TRUE)


trichelab/biscuitEater documentation built on March 2, 2024, 6:57 p.m.