Learn R Programming

GLDEX (version 2.0.0.9.3)

fun.nclass.e: Estimates the number of classes or bins to smooth over in the discretised method of fitting generalised lambda distribution to data.

Description

Support function for discretised method of fitting distribution to data.

Usage

fun.nclass.e(x)

Value

A numerical value suggesting the best number of class that can be used to represent the mean and variane of the original data set.

Arguments

x

Vector of data.

Author

Steve Su

Details

This function calculates the mean and variance of the discretised data from 1 to the very last observation and chooses the best number of categories that represent the mean and variance of the actual data set through the criterion of squared deviations.

See Also

fun.disc.estimation

Examples

Run this code
fun.nclass.e(rnorm(100,3,2))

Run the code above in your browser using DataLab