psiLogOddsInverse: psiLogOddsInverse

Description Usage Arguments Value See Also Examples

Description

This function is a transformation function that inverts the log odds. It's appropriate for mapping (-inf, inf) :-> (0, 1) As in all functions in this package, the parameters are set so that applying the same parameters to the main function and the inverse yields an identity.

Usage

1
psiLogOddsInverse(warpedStimuli, smallValue = 10^-30)

Arguments

warpedStimuli

a vector of stimuli, between -inf and inf

smallValue

A value to set nominal 0's to, to avoid errors in plotting simulated data, or aberrant responses. Accepted here to give the function and its inverse the same parameter set

Value

A vector containing unwarped stimuli

See Also

psiLinear, psiLogOdds, psiPrelec, psiLog, psiIdentityInverse

Examples

1
2
3
4
psiLogOdds(1:100/100)
(0:1000/1000) %>% psiLogOdds() %>% 
    vanillaBayes() %>% 
    psiLogOddsInverse()  # Implements Gonzales & Wu, 1996

dlandy/WarpedBayes documentation built on May 29, 2019, 2:49 p.m.