Learn R Programming

empirical (version 0.2.0)

returned_functions: Returned Functions

Description

Functions returned by functions. Note that you can name your functions whatever you like. (In the vignette I've named them f, F and F.inv). Also note that you don't call these functions, rather call epdfuv(), ecdfuv(), etc and then call the functions that are returned.

Usage

epdfuv.f (x)
ecdfuv.f (x)
ecdfuv.f.inverse (y)
epdfmv.f (x)
ecdfmv.f (x)

Arguments

x

A vector of x values.

y

A vector of y values.

See Also

epdfuv, ecdfuv, ecdfuv.inverse, epdfmv, ecdfmv, epdfc, ecdfc, ecdfc.inverse

Examples

Run this code
# NOT RUN {
#construct an empirical quantile function and then evaluate it
#(compute the 0.25 quantile)
x = rnorm (30, 4) ^ 2
ecdfuv.f.inverse = ecdfuv.inverse (x)
ecdfuv.f.inverse (0.25)
# }

Run the code above in your browser using DataLab