mps2cps {CorrToolBox} | R Documentation |
This function computes cumulative probabilities for each ordinal variable as defined by marginal probabilities provided in a list.
mps2cps(mps)
mps |
A list of marginal probability vectors corresponding to each ordinal variable. Each vector within the list |
A list of vectors containing cumulative probabilities for each set of marginal probabilities specified in mps
. The i-th element of the list is a vector of the cumulative probabilities defining the marginal distribution of the i-th element of mps
. If the i-th variable has k categories, the i-th vector in the output will contain (k-1) probability values. The k-th element is implicitly 1.
mps2cps(list(c(0.4, 0.3, 0.2, 0.1), c(0.2, 0.2, 0.6)))