powered by
This function takes in a single argument of .x a vector and will return a tibble of information similar to the tidy_ distribution functions. The y column is set equal to dy from the density function.
tidy_
y
dy
tidy_empirical(.x, .num_sims = 1, .distribution_type = "continuous")
A tibble
A vector of numbers
How many simulations should be run, defaults to 1.
A string of either "continuous" or "discrete". The function will default to "continuous"
Steven P. Sanderson II, MPH
This function takes in a single argument of .x a vector
x <- mtcars$mpg tidy_empirical(.x = x, .distribution_type = "continuous") tidy_empirical(.x = x, .num_sims = 10, .distribution_type = "continuous")
Run the code above in your browser using DataLab