| disc.marg2 | R Documentation | 
Marginal PDF of Two Discrete Random variables
disc.marg2(tabXY, Xn, Yn, prt = TRUE, plot = FALSE, dig = 5, dig2 = 4)
tabXY | 
 Joint frequency table of two random variables  | 
Xn | 
 Name of the first random variable (default="X")  | 
Yn | 
 Name of the second random variable (default="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  | 
Marginal Probabilities
fxy = with(mtcars, table(cyl, carb)) disc.marg2(fxy) disc.marg2(fxy, "Cylinder", "Carbrator", prt=FALSE, plot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.