Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

eCDF

Empirical Cumulative Distribution Function


Description

Returns the desired quantiles of quantile regression object such as an extlogF1() or lms.bcn() VGLM object

Usage

eCDF.vglm(object, all = FALSE, ...)

Arguments

object

an object such as a vglm object with family function extlogF1 or lms.bcn.

all

Logical. Return all other information? If true, the empirical CDF is returned.

...

additional optional arguments. Currently unused.

Details

This function was specifically written for a vglm object with family function extlogF1 or lms.bcn. It returns the proportion of data lying below each of the fitted quantiles, and optionally the desired quantiles (arguments tau or percentiles / 100 in the family function). The output is coerced to be comparable between family functions by calling the columns by the same names.

Value

A vector with each value lying in (0, 1). If all = TRUE then a 2-column matrix with the second column being the tau values or equivalent.

See Also

Examples

fit1 <- vglm(BMI ~ ns(age, 4), extlogF1, data = bmi.nz)  # trace = TRUE
eCDF(fit1)
eCDF(fit1, all = TRUE)

VGAM

Vector Generalized Linear and Additive Models

v1.1-5
GPL-3
Authors
Thomas Yee [aut, cre], Cleve Moler [ctb] (author of several LINPACK routines)
Initial release
2021-01-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.