LogitSum {SALTSampler}R Documentation

Log of the Sum of Probabilities

Description

For x=logit(p), this function returns s = log(\sum p) where the sum of p 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]