Description Usage Arguments Value Author(s) References See Also Examples
View source: R/S3_degross_plot.R
Plot the density estimate corresponding to a degross
object and superpose it to the observed histogram.
1 2 |
x |
A degross.object generated by degross. |
col |
Color used for plotting the fitted density. |
lwd |
Line width for the fitted density curve. |
lty |
Line type for the the fitted density curve. |
xlab |
Label on the x-axis. |
ylab |
Label on the y-axis. |
main |
Title for the generated graph. |
... |
Further arguments to be passed to |
A histogram based on the observed big bin frequencies with the fitted density superposed.
Philippe Lambert p.lambert@uliege.be
Lambert, P. (2021) Moment-based density and risk estimation from grouped summary statistics. arXiv:2107.03883.
degross
, degross.object
, print.degross
.
1 2 3 4 5 | sim = simDegrossData(n=3500, plotting=TRUE,choice=2) ## Generate grouped data
obj.data = degrossData(Big.bins=sim$Big.bins, freq.j=sim$freq.j, m.j=sim$m.j)
print(obj.data)
obj.fit = degross(obj.data) ## Estimate the underlying density
plot(obj.fit) ## Plot the fitted density with the data histogram
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.