recogniseCdf: Explanatory Name of Distribution Function

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/recog.R

Description

Recognises many standard cumulative distribution functions and returns a string describing the distribution.

Usage

1
recogniseCdf(s="punif")

Arguments

s

A single character string giving the name of an R function that calculates cumulative probabilities.

Details

The list of recognised distribution functions includes all those available in the stats package and in goftest.

By convention, the name of a cumulative distribution function begins with the letter p. For example, punif is the cumulative distribution function of the uniform distribution.

The initial letter p can be omitted in the function recogniseCdf.

Value

Character string, or NULL if the name is not recognised.

Author(s)

Adrian Baddeley.

See Also

pAD

Examples

1
2
3
   recogniseCdf("punif")
   recogniseCdf("unif")
   recogniseCdf("pt")

Example output

[1] "uniform distribution"
NULL
[1] "Student's t distribution"

goftest documentation built on Oct. 7, 2021, 5:07 p.m.