eval_density_R: A function to evaluate the quantile or density of given data...

View source: R/spline_helpers.R

eval_density_RR Documentation

A function to evaluate the quantile or density of given data based on normal distribution

Description

A function to evaluate the quantile or density of given data based on normal distribution

Usage

eval_density_R(y, alphas, m = 1, s = 1, distn = "p", tails = "gaussian")

Arguments

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

Details

the distn argument takes on "p" to evaluate a PF, "c" to evaluate a CDF, and "q" to evaluate a quantile distribution.

Value

A vector of quantiles or density corresponding to y


be-green/quantspace documentation built on March 20, 2024, 5:30 p.m.