repan: Generate random uncensored epanechnikov-distributed data

Description Usage Arguments Value Examples

Description

This function works in conjuncture with qepan and runif

Usage

1
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. r=5^.5 corresponds to a standard deviation of 1.

Value

vector of random variables.

Examples

1
2
#Generate and plot 10000 random observations:
hist(repan(10000,mu=100,r=10))

Example output



epandist documentation built on May 2, 2019, 4:55 a.m.