simDegrossData {degross}R Documentation

Simulation of grouped data and their sample moments to illustrate the degross density estimation procedure

Description

Simulation of grouped data and their sample moments to illustrate the degross density estimation procedure

Usage

simDegrossData(n, plotting=TRUE, choice=2, J=3)

Arguments

n

Desired sample size

plotting

Logical indicating whether the histogram of the simulated data should be plotted. Default: FALSE

choice

Integer in 1:3 indicating from which mixture of distributions to generate the data

J

Number of big bins

Value

A list containing tabulated frequencies and central moments of degrees 1 to 4 for data generated using a mixture density. This list contains :

Author(s)

Philippe Lambert p.lambert@uliege.be

References

Lambert, P. (2021) Moment-based density and risk estimation from grouped summary statistics. arXiv:2107.03883.

See Also

degrossData.

Examples

## Generate data
sim = simDegrossData(n=3500, plotting=TRUE, choice=2, J=3)
print(sim$true.density) ## Display density of the data generating mechanism

# Create a degrossData object
obj.data = with(sim, degrossData(Big.bins=Big.bins, freq.j=freq.j, m.j=m.j))
print(obj.data)


[Package degross version 0.9.0 Index]