Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fun.disc.estimation

Estimates the mean and variance after cutting up a vector of variable into evenly spaced categories.


Description

This function supplements fun.nclass.e and it is not intended to be used by the users directly.

Usage

fun.disc.estimation(x, nint)

Arguments

x

A vector of observations.

nint

Number of intervals to cut the vectors into.

Details

The function cuts the vector into evenly spaced categories and estimate the mean and variance of the actual data based on the categorisation.

Value

Two numerical values, the first being the mean and the second being the variance.

Author(s)

Steve Su

See Also

Examples

## Cut up a randomly normally distributed observations into 5 evenly spaced 
## categories and estimate the mean and variance based on this cateogorisation.
junk<-rnorm(1000,3,2)
fun.disc.estimation(junk,5)

GLDEX

Fitting Single and Mixture of Generalised Lambda Distributions (RS and FMKL) using Various Methods

v2.0.0.7
GPL (>= 3)
Authors
Steve Su, with contributions from: Diethelm Wuertz, Martin Maechler and Rmetrics core team members for low discrepancy algorithm, Juha Karvanen for L moments codes, Robert King for gld C codes and starship codes, Benjamin Dean for corrections and input in ks.gof code and R core team for histsu function.
Initial release
2020-02-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.