mps2cps {CorrToolBox}R Documentation

Computation of Cumulative Probabilities Given a Set of Marginal Probabilities

Description

This function computes cumulative probabilities for each ordinal variable as defined by marginal probabilities provided in a list.

Usage

mps2cps(mps)

Arguments

mps

A list of marginal probability vectors corresponding to each ordinal variable. Each vector within the list mps must sum to 1.

Value

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.

Examples

mps2cps(list(c(0.4, 0.3, 0.2, 0.1), c(0.2, 0.2, 0.6)))

[Package CorrToolBox version 1.6.3 Index]