density2cumulative: returns the cumulative of an /empirical/

Description Usage Arguments Details Value Examples

View source: R/f3.rbsb4.code.r

Description

This function returns the cumulative probability distribution function of an /empirical/ object. That is returns the coordinates of points defining this function. Be aware that the calculus is made numerically, which is not the case for pempirical, so better use it.

Usage

1
density2cumulative(empi, N=1000)

Arguments

empi

The empirical object to consider.

N

The number of steps for the curve all around the range of the random variable.

Details

N must be understood as a simple way to give the level of precision the user wants to see apply for the returned curve.

Value

A matrix with two columns x,y.

Examples

1
2
 rbsb3k("RESET"); # for R checking compliance (useless)
 density2cumulative(new("empirical"));

rbsb documentation built on May 2, 2019, 4:41 p.m.