pgh_scalar: Distribution function for the g-and-h distribution

View source: R/pgh.R

pgh_scalarR Documentation

Distribution function for the g-and-h distribution

Description

Distribution function for the g-and-h distribution

Usage

pgh_scalar(
  q,
  A,
  B,
  g,
  h,
  c = 0.8,
  zscale = FALSE,
  type = c("generalised", "tukey")
)

Arguments

q

Quantiles.

A

A (location) parameter.

B

B (scale) parameter. Must be positive.

g

g parameter.

h

h parameter. Must be non-negative.

c

c parameter. Often fixed at 0.8 which is the default.

zscale

When true returns the N(0,1) quantile of the cdf (needed by dgh).

type

Can be "generalised" (default) or "tukey".

Details

This internal function performs the calculation assuming scalar inputs. The exported function is a vectorised wrapper of this.

Value

The cumulative probability.


gk documentation built on Aug. 10, 2023, 5:06 p.m.

Related to pgh_scalar in gk...