Last data update: 2014.03.03

R: A function to calculate statistics using bin midpoints
midStatsR Documentation

A function to calculate statistics using bin midpoints

Description

This function calcualtes a suite of pre-defined statistics on binned distributions using pre-calculated midpoints for each bin.

Usage

midStats(data)

Arguments

data

a (non-empty) data frame with columns named ID, mids, and hb.

Details

Currently has the following stats: 'mean','median','gini','theil','cv','MLD'. FIXME - reference to functions in gamlss

Value

Returns a data frame with the following columns: 'ID','mean','median','gini','theil','cv','MLD'

See Also

FIXME add in links to Gini and Theil functions.

Examples

#not run, internal function

Results