Skip to contents

Generic relative(e1, e2) returns the Bayes-space ratio of two densities. The default method dispatches to fda::minus.fd() on the clr-transformed log-densities.

Usage

relative(e1, e2, ...)

# S3 method for class 'dd'
relative(e1, e2, ...)

# S3 method for class 'ddl'
relative(e1, e2, ...)

Arguments

e1, e2

dd objects (or lists thereof) to compare.

...

Further arguments forwarded to the underlying method.

Value

A dd object.