cont.ind2: Independence of Two Continuous Random Variables

Description Usage Arguments Value Examples

View source: R/ch4-fn.R

Description

Determine Independence of Two Continuous Random Variables

Usage

1
cont.ind2(FUN, lo1, up1, lo2, up2, n = 11, ep = 1e-06, prt = FALSE)

Arguments

FUN

Continuous joint PDF

lo1

Lower limit of X

up1

Upper limit of X

lo2

Lower limit of Y

up2

Upper limit of Y

n

Number of checking points between lower and upper limit, Default: 11

ep

Error bound for comparing probablities, Default: 1e-06

prt

Print detailed output? Default: FALSE

Value

Joint PDF

Examples

1
2
pdf = function(x, y) (x+y)*(x>=0 & x<=1)*(y>=0 & y<=1)
cont.ind2(pdf, lo1=0, up1=1, lo2=0, up2=1)

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.