marginalize: Convert joint to marginal (log) probabilities

Description Usage Arguments Value Functions

View source: R/probability.R

Description

Convert joint to marginal (log) probabilities

Usage

1
2
3
marginalize(joint, prob, ...)

marginalize_log(joint, log_prob, ...)

Arguments

joint

data frame with (possibly un-normalized) joint probabilities

prob, log_prob

name of column with (log) probability values to normalize

...

additional arguments are columns used to define additional groupings for marginalization.

Value

a data frame with columsn for marginal_vars and any pre-existing grouping, plus marginal log likelihood.

Functions


kleinschmidt/daver documentation built on April 3, 2018, 11:05 a.m.