simulate_from_density: Simulate from density Compared with bootstrapping, the...

View source: R/simulate_from_density.R

simulate_from_densityR 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.

Description

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.

Usage

simulate_from_density(vec, N = 1e+05)

Arguments

vec

Numeric vector

N

Integer, number of simulated instances

Author(s)

Iakov Davydov

Examples

my_vec <- c(23, 27, 26, 24, 25)
simulate_from_density(my_vec, 10)

bedapub/ribiosMath documentation built on Jan. 29, 2023, 1:48 p.m.