Description Usage Arguments Value See Also Examples
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.
1 | psiLogOddsInverse(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, psiLog, psiIdentityInverse
1 2 3 4 | psiLogOdds(1:100/100)
(0:1000/1000) %>% psiLogOdds() %>%
vanillaBayes() %>%
psiLogOddsInverse() # Implements Gonzales & Wu, 1996
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.