questplus icon indicating copy to clipboard operation
questplus copied to clipboard

Add support for inverse function

Open dominikue opened this issue 2 years ago • 1 comments

Hi, for our project we adjusted the code to use an inverse function. I think this could be helpful for some others. Please let me know if you want a reproducible example or a pull request :)

Adjust line 111 in questplus/psychometric_function.py:

- return p
+ return (1 + lower_asymptote - lapse_rate) - p

Example plot: output

dominikue avatar Jan 08 '24 10:01 dominikue

Very nice! If you would like to make a pull request, please do go ahead :) Be sure to include some tests too, if possible :)

hoechenberger avatar Jan 08 '24 10:01 hoechenberger