logdiff: logdiff

Description Usage Arguments Details Value Author(s)

View source: R/claudia.R

Description

Internal function, logdiff

Usage

1
  logdiff(x, y)

Arguments

x

numeric

y

numeric

Details

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

Value

max(x) + log(exp(x - max(x,y)) - exp(y-max(x,y)))

Author(s)

Chris Wallace


coloc documentation built on May 29, 2017, 10:06 a.m.

Search within the coloc package
Search all R packages, documentation and source code