s.gld.density.quantile | R Documentation |
This function calculates the densities of a Generalized Lambda Distribution (FKLM) given a vector of probabilities.
s.gld.density.quantile(probs, p1, p2, p3, p4)
probs |
A numeric vector representing the probabilities. |
p1 |
Numeric value representing the first parameter (location) of the distribution. |
p2 |
Numeric value representing the second parameter (scale) of the distribution. |
p3 |
Numeric value representing the third parameter (skewness) of the distribution. |
p4 |
Numeric value representing the fourth parameter (kurtosis) of the distribution. |
It is a helper statistics method in this package and is generally used to plot density function of a GLD distribution.
A numeric vector representing the densities for each probability in probs
.
s.gld.quantile
# In this example we use this function and plot the density function for
# standard normal distribution:
probs <- seq(0.1,0.9,0.1)
x <- s.gld.quantile(probs, 0,1,0,0)
y <- s.gld.density.quantile(probs, 0,1,0,0)
plot(x,y)
lines(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.