View source: R/tidyDiscretise.R
linearBySize | R 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)
linearBySize(slope, minBins, maxBins, fn = fixedNumber)
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 ) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.