pepan: Cumulative distribution function (cdf) for an uncensored...

Description Usage Arguments Value Examples

Description

The inverse of this function is qepan.

Usage

1
pepan(x = 0, mu = 0, r = 5^0.5)

Arguments

x

point on x-axis.

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

probability of value below x given mu and r.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#Probability of a value below -1.96:
pepan(x=-1.96,mu=0,r=5^.5)

#Cumulative distribution function of epanechnikov distribution:
curve(pepan(x),col='blue',xlim=c(-2.5,2.5),yaxs='i',xaxs='i',
main='Cumulative distribution function',ylab='Probability')

#Cumulative distribution function of standard normal distribution:
curve(pnorm(x),col='green',add=TRUE)

#Legend
legend(x=-2.5,y=1,legend=c('Epanechnikov cdf','Normal cdf'),lty=c(1,1),col=c('blue','green'))

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