psiPrelecInverse: psiPrelecInverse

Description Usage Arguments Value See Also Examples

Description

This function is a transformation function inverts the Prelec transformation, ln(ln(1/s)) By design, it is robust to the inclusion of the occasional 0, which it maps to a very small value, which can optionally be specified It's appropriate for mapping (0, 1):-> (-inf, inf).

Usage

1
psiPrelecInverse(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, psiLogInverse, psiIdentityInverse

Examples

1
2
3
4
psiPrelecInverse(-10:10)
(0:1000/1000) %>% psiPrelec() %>% 
    vanillaBayes() %>% 
    psiPrelecInverse()  # Implements Prelec, 1998

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