Learn R Programming

coloc (version 5.2.3)

logsum: logsum

Description

Internal function, logsum

Usage

logsum(x)

Value

max(x) + log(sum(exp(x - max(x))))

Arguments

x

numeric vector

Author

Claudia Giambartolomei

Details

This function calculates the log of the sum of the exponentiated logs taking out the max, i.e. insuring that the sum is not Inf