combine: Combine Several Likelihood Functions Multiplicatively

View source: R/util.R

combineR Documentation

Combine Several Likelihood Functions Multiplicatively

Description

Combine several likelihood functions, so that the new functions gives the product of all likelihoods (the sum of the log likelihoods). This assumes that all likelihoods are independent from one another!

This function is little tested. Use at your own risk!

Usage

combine(liks)

Arguments

liks

A list of likelihood functions. All must be of the same type, with the same argnames, and not constrained.

Author(s)

Richard G. FitzJohn


diversitree documentation built on Oct. 2, 2024, 9:13 a.m.