Learn R Programming

goftest (version 1.2-3)

recogniseCdf: Explanatory Name of Distribution Function

Description

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

Usage

recogniseCdf(s="punif")

Arguments

s

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

Value

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

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.

See Also

pAD

Examples

Run this code
# NOT RUN {
   recogniseCdf("punif")
   recogniseCdf("unif")
   recogniseCdf("pt")
# }

Run the code above in your browser using DataLab