lc_conditional: Calculate the conditional probabilities

View source: R/lc_probs.R

lc_conditionalR Documentation

Calculate the conditional probabilities

Description

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

Usage

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


edsandorf/cmdlR documentation built on Jan. 17, 2024, 12:33 a.m.