Description Usage Arguments Details Value Author(s)
View source: R/priors.R View source: R/functions_moloc.R
Internal function, logsum
Internal function, logsum
1 2 3 |
x |
numeric vector |
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
max(x) + log(sum(exp(x - max(x))))
Claudia Giambartolomei, Vincent Plagnol
Claudia Giambartolomei
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.