disc.ind2: Independence of Two Discrete Random Variables

Description Usage Arguments Value Examples

View source: R/disc.ind2.R

Description

Determine Independence of Two Discrete Random Variables

Usage

1
disc.ind2(X, Y, prt = TRUE)

Arguments

X

Sample space vector of X

Y

Sample space vector of Y

prt

Print detailed output? Default: TRUE

Value

Joint PDF

Examples

1
2
3
4
5
6
S <- rolldie2(4)
sum3 <- function(x) sum(x >= 3)
X <- apply(S, 1, sum3)
even <- function(x) sum(x %% 2 == 0)
Y <- apply(S, 1, even)
disc.ind2(X, Y)

jhk0530/Rstat documentation built on Dec. 20, 2021, 11:11 p.m.