Nothing
# Function to invert a CDF, ie, to get qxxx from pxxx
inverseCDF <- function(p, CDF, ...) {
if(!is.null(list(...)$log.p))
stop("'log.p' not yet implemented (ie, always FALSE)")
if(!is.null(list(...)$lower.tail))
stop("'lower.tail' not yet implemented (ie, always TRUE)")
if(any(p < 0 | p > 1))
stop("'p' must be a probability in the interval (0, 1)")
p <- pmin(pmax(p, 1e-6), 1 - 1e-6) # Fix values too close to 0 or 1
too <- function(x, p, ...) CDF(x, ...) - p
q <- numeric(length(p))
for(i in seq_along(p))
q[i] <- uniroot(too, interval=c(-10,10), extendInt = 'yes', p=p[i], ...)$root
return(q)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.