disc.cond2: Conditional PDF of Discrete Random Variables

Description Usage Arguments Value Examples

View source: R/disc.cond2.R

Description

Conditional Probability Distribution of Discrete Random Variables

Usage

1
disc.cond2(tabXY, Xs, Ys, prt = TRUE, plot = FALSE, dig = 5, dig2 = 4)

Arguments

tabXY

Joint frequency table of two random variables

Xs

Conditioning value of X

Ys

Conditioning value of Y

prt

Print the marginal frequency and probability? Default: TRUE

plot

Plot the marginal PDF? Default: FALSE

dig

Number of digits below the decimal point in the console, Default: 5

dig2

Number of digits below the decimal point in the graph, Default: 4

Value

Conditional Frequency and PDF

Examples

1
2
fxy <- with(mtcars, table(cyl, carb))
disc.cond2(fxy, Ys = 1:4, plot = TRUE)

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