Description Usage Arguments Value Examples
The inverse of this function is qepan
.
1 | pepan(x = 0, mu = 0, r = 5^0.5)
|
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. |
probability of value below x
given mu
and r
.
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'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.