View source: R/spline_helpers.R
eval_density_R | R Documentation |
A function to evaluate the quantile or density of given data based on normal distribution
eval_density_R(y, alphas, m = 1, s = 1, distn = "p", tails = "gaussian")
y |
a vector of quantile or pdf |
alphas |
a vector of specifed quantiles to interpolate |
m |
mean of the normal distribution |
s |
standard deviation of the normal distribution |
distn |
a string which indicates what type of distribution to return. See details. |
tails |
what distribution to use for the tails |
the distn
argument takes on "p" to evaluate a PF, "c" to evaluate a CDF,
and "q" to evaluate a quantile distribution.
A vector of quantiles or density corresponding to y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.