Description Usage Arguments Value See Also Examples
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).
1 | psiPrelecInverse(warpedStimuli, smallValue = 10^-30)
|
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 |
A vector containing unwarped stimuli
psiLinear, psiLogOdds, psiPrelec, psiLogInverse, psiIdentityInverse
1 2 3 4 | psiPrelecInverse(-10:10)
(0:1000/1000) %>% psiPrelec() %>%
vanillaBayes() %>%
psiPrelecInverse() # Implements Prelec, 1998
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.