unionIndependent: unionIndependent

Description Usage Arguments Value

Description

Calculates the probability of a union of independent events using the Law of Total probability and the inclusion-exclusion principle.

Usage

1
unionIndependent(probs, combinations = NULL)

Arguments

probs

A vector of probabilities

combinations

A list of matrices containing the the possible of probabilities. This values in the matrix cells should be the indeces of the probabilities in the vector 'probs'. Default is Null—so the combinations will be arranged by the function. To create this combination list, you can use the 'prepCombinations' convenience function provided in the 'lamap' package.

Value

Probability of the union.


wccarleton/Rlamap documentation built on May 24, 2019, 7:50 a.m.