aggregate_lhood: Aggregate observations' likelihoods into single posterior

Description Usage Arguments Value Functions

Description

When column x has the likelihood of one observation under hypotheses named in column H

Usage

1
2
3
aggregate_lhood(lhoods, prob, ...)

aggregate_log_lhood(lhoods, log_prob, ...)

Arguments

lhoods

data frame with one row per observation and hypothesis combination, and column log_lhood with log-likelihood of observations given hypothesis

prob, log_prob

name of column with (log) likelihood values to aggregate

...

additional arguments are used to define additional groups to aggregate likelihood within

Value

a data frame with one row per group (plus additional grouping vars) and total likelihood in prob

Functions


kleinschmidt/daver documentation built on May 20, 2019, 12:33 p.m.