View source: R/simulate_from_density.R
simulate_from_density | R Documentation |
Simulate from density Compared with bootstrapping, the results do not reveal input values, and the empirical distribution can be smoother. The function assumes that the data is normally distributed.
simulate_from_density(vec, N = 1e+05)
vec |
Numeric vector |
N |
Integer, number of simulated instances |
Iakov Davydov
my_vec <- c(23, 27, 26, 24, 25) simulate_from_density(my_vec, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.