sheppardCorrection: Calculate the mean of any binned data and the variance and...

Description Usage Arguments Value Examples

View source: R/sheppardCorrection.r

Description

Calculate the mean of any binned data and the variance and corrected variance

Usage

1
sheppardCorrection(counts, binLower, binUpper)

Arguments

counts

A row vector the cells associated with count of objects in each bin,

binLower

A vector of the lower bounds of each bin

binUpper

A vector of the upper bounds of each bin

Value

A list with three components

  1. The mean of the matrix of binned vectors mu

  2. The unadjusted variance sigma2

  3. The variance with the adjusted shepherd correction sigma2Adj

The the sheppard corrected variance

Examples

1
2
3
4
upper <- seq(10, 100, 10)
lower <- seq(0, 90, 10)
counts <- c(0, 0, 4, 4, 4, 2, 0, 0, 0, 0)
sheppardCorrection(counts, upper, lower)

aserlich/gameify documentation built on Sept. 27, 2019, 5:41 p.m.