powered by
marginal(X, num)
AandB <- jointRV(outcomes = list(1:3, 0:2), probs = 1:9 / sum(1:9)) marginal(AandB, 1) marginal(AandB, 2)
Run the code above in your browser using DataLab