Calculates the conditional class membership probabilities. Cannot calcualte with continuous heterogeneity within class nor if it is part of an ICLV model.

lc_conditional(pr_seq, pr_cls)

Arguments

pr_seq

A matrix containing the class specific probability of the choice sequence with dimensions n_id x n_cls where each column corresponds to a class.

pr_cls

A matrix of unconditional class probabilities. Must have the same dimensions as pr_seq

Value

The matrix of conditional class probabilities