chickadee » statistics » find-critical-value

(find-critical-value p-function p-value #:increasing?)procedure

given a monotonic function p-function taking a single value x to y, returns the value of x which makes (p-function x) closest to p-value. A boolean keyword parameter #:increasing? determines if function should be increasing or decreasing (the default).