Description Usage Arguments Author(s) Examples

View source: R/discreteRV-Probabilities.r

Joint probability mass function of random variables X and Y

1 2 |

`X` |
random variable |

`Y` |
random variable |

`sep` |
separator between items from marginal distributions, by default set to "," |

`fractions` |
If TRUE, return the probabilities as fractions |

Heike Hofmann [email protected]

1 2 3 |

```
Attaching package: 'discreteRV'
The following object is masked from 'package:base':
%in%
Warning messages:
1: In RV(outcomes = as.character(S), probs = as.numeric(tmp), fractions = fractions) :
NAs introduced by coercion
2: In RV(outcomes = as.character(S), probs = as.numeric(tmp), fractions = fractions) :
NAs introduced by coercion
A,A A,B A,C B,A B,B B,C C,A
0.02493075 0.04155125 0.09141274 0.04155125 0.06925208 0.15235457 0.09141274
C,B C,C
0.15235457 0.33518006
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.