repan {epandist} | R Documentation |
Generate random uncensored epanechnikov-distributed data
Description
This function works in conjuncture with qepan
and runif
Usage
repan(n, mu = 0, r = 5^0.5)
Arguments
n |
number of data points. |
mu |
mean of distribution. |
r |
half the range of the distribution, ie the distance from the mean to the smallest/largest value supported by the distribution. |
Value
vector of random variables.
Examples
#Generate and plot 10000 random observations:
hist(repan(10000,mu=100,r=10))
[Package epandist version 1.1.1 Index]