qepan: Quantile function for an uncensored epanechnikov distribution

Description Usage Arguments Value Examples

Description

The inverse of this function is pepan.

Usage

1
qepan(p, mu = 0, r = 5^0.5)

Arguments

p

probability.

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

the quantile associated with x, mu and r.

Examples

1
2
3
4
5
6
7
8
#Calculate the lower quartile of an epan-distributed variable:
qepan(p=.25,mu=0,r=sqrt(5))

#Use qepan to confirm analytical solution
#Find the quantile corresponding to p=(5+sqrt(5))/8=.9045 when mu=0 and r=sqrt(5):
qepan(p=(5+sqrt(5))/8,mu=0,r=sqrt(5))
#This is equal to
(5-sqrt(5))/2

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