cont.cdf: CDF of a Continuous Random Variable

View source: R/ch4-fn.R

cont.cdfR Documentation

CDF of a Continuous Random Variable

Description

Cumulative Distribution Function of a Continuous Random Variable

Usage

cont.cdf(FUN, low, up, xs, mt, dig = 4, pos = "bottomright")

Arguments

FUN

Probability density function

low

Lower limit of x-axis

up

Upper limit of x-axis

xs

Specific values of X for displaying the probability

mt

Graph Title of the CDF

dig

Number of digits below the decimal point, Default: 4

pos

Legend location, Default: 'bottomright'

Value

None.

Examples

pdf = function(x) 2*exp(-2*x)*(x>0)
cont.cdf(pdf, low=-1, up=3, xs=c((1:5)*0.2, 2))

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.