View source: R/dst_empirical.R
dst_empirical | R Documentation |
An empirical distribution is a non-parametric way to
estimate a distribution using data. By default,
it assigns equal probability to all observations
(this can be overridden with the weights
argument).
Identical to dst_finite()
with weights as probabilities,
except weights need not add to 1.
dst_empirical(y, data, weights = 1, ...)
y |
< |
data |
Data frame containing the outcomes |
weights |
< |
... |
Additional arguments, currently not used. |
An object of class c("finite", "dst")
.
dst_finite()
x <- rnorm(100)
dst_empirical(x)
dst_empirical(value, data = data.frame(value = x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.