remove_excess_probas_pd: Removes useless modalities from a probability distribution

Description Usage Arguments Details Value Author(s)

Description

Often, the user provides probabilities to deal with all the possible modalities in its dataset; but sometimes the sample just does not contains some of the modalities which might exist. This function takes as a reference the dictionary assuming it contains only what is required. In removes all the columns related to modalities not really found in the probability table.

Usage

1
remove_excess_probas_pd(pd, dictionary)

Arguments

pd

a probability distribution

dictionary

a dictionary

Details

If data is removed, a warning will be emitted.

Value

the same probability distribution with maybe less elements

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>


samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.