agg_loss: Compute the agglomeration loss associated with combining two...

Description Usage Arguments Value

Description

Compute the agglomeration loss associated with combining two sets of counts under a user-specified divergence

Usage

1
agg_loss(n, m, marginal = n + m, div = DKL)

Arguments

n

the first set of counts to agglomerate

m

the second set of counts to agglomerate

marginal

the global count set

agg_div

the divergence function under which to compute loss

...

additional arguments passed to div

Value

a nonnegative scalar


PhilChodrow/compx documentation built on May 8, 2019, 1:34 a.m.