LogitSum {SALTSampler} | R Documentation |
Log of the Sum of Probabilities
Description
For , this function returns
where the sum of
is less than or equal to 1. Calculations are designed to preserve accuracy even for values numerically near 0 or 1.
Usage
LogitSum(x)
Arguments
x |
A vector of probabilites whose sum is less than or equal to 1 |
Examples
#Find logit sum for a single value
LogitSum(x = 0.1)
#Find logit sum for a vector of values
LogitSum(x = c(0.1, 0.4, 0.2))
[Package SALTSampler version 1.1.0 Index]