logdiff | R Documentation |
Internal function, logdiff
logdiff(x, y)
x |
numeric |
y |
numeric |
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
max(x) + log(exp(x - max(x,y)) - exp(y-max(x,y)))
Chris Wallace
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.