Learn R Programming

GenHMM1d (version 0.2.1)

QUANTILE: Quantile function

Description

This function computes the quantile function of a univariate distribution, excluding zero-inflated.

Usage

QUANTILE(p, param, family, size = 0)

Value

q

quantile/VAR

Arguments

p

values at which the quantile needs to be computed; between 0 and 1; (e.g 0.01, 0.05)

param

parameters of the distribution; (1 x p)

family

distribution name; run the function distributions() for help

size

additional parameter for some discrete distributions; run the command distributions() for help

Examples

Run this code
family = "gaussian"

theta = matrix(c(-1.5, 1.7),1,2) ;
quantile = QUANTILE(0.01, theta, family)
print('Quantile : ')
print(quantile)

Run the code above in your browser using DataLab