cont.ind2: Independence of Two Continuous Random Variables

View source: R/ch4-fn.R

cont.ind2R Documentation

Independence of Two Continuous Random Variables

Description

Determine Independence of Two Continuous Random Variables

Usage

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

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)

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