logsum: logsum

View source: R/singlevar.R

logsumR Documentation

logsum

Description

Internal function, logsum Function directly taken from coloc 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

Usage

logsum(x)

Arguments

x

numeric vector

Value

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


ichcha-m/cophescan documentation built on June 16, 2024, 1:39 a.m.