disc.cond2: Conditional PDF of Discrete Random Variables

Description Usage Arguments Value Examples

View source: R/ch4-fn.R

Description

Conditional Probability Distribution of Discrete Random Variables

Usage

1
2
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)

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