| sem_kde | R Documentation |
Wrapper around the stochastic expectation-maximization estimator of Gross and Rendtel
(the Kernelheaping package), interpolated to grid. Requires that package;
returns NULL if it is not installed.
sem_kde(y, D, grid, burnin = 5, samples = 10)
y |
heaped (rounded) sample. |
D |
grid width. |
grid |
evaluation grid (equally spaced). |
burnin, samples |
SEM burn-in and sample counts passed to |
Density values on grid, or NULL if Kernelheaping is absent.
grid <- seq(-6, 6, length.out = 512)
if (requireNamespace("Kernelheaping", quietly = TRUE))
f <- sem_kde(0.5 * round(rnorm(800) / 0.5), 0.5, grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.