linearBySize: A binning strategy generator. Creates a function that can be...

View source: R/tidyDiscretise.R

linearBySizeR Documentation

A binning strategy generator. Creates a function that can be used to create discretisation cuts based on the statistical paramaters of the data to be discretised in particular the sample size, minimum and maximum value of the observed data (in a group by group fashion)

Description

A binning strategy generator. Creates a function that can be used to create discretisation cuts based on the statistical paramaters of the data to be discretised in particular the sample size, minimum and maximum value of the observed data (in a group by group fashion)

Usage

linearBySize(slope, minBins, maxBins, fn = fixedNumber)

Arguments

slope

- the number of observations for each bin if the observation numbers fall between minBins*slope and maxBins*slope

minBins

- the smallest number of bins to create for each group

maxBins

- the largest number of bins to create for each group

fn

- the distribution function that genertes the cut points (e.g. tidyinfostats::fixedNumber (uniform), tidyinfostats::logNormalCentiles )


terminological/tidy-info-stats documentation built on Nov. 19, 2022, 11:23 p.m.