simDegrossData: Simulation of grouped data and their sample moments to...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/simDegrossData.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
## 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)

degross documentation built on Aug. 4, 2021, 5:06 p.m.