Defines functions transformQuantiles

Documented in transformQuantiles

#' Transform quantiles to pdf (deprecated)
#' The purpose of this function was to transform the DHARMa quantile residuals (which have a uniform distribution) to a particular pdf. Since DHARMa 0.3.0, this functionality is integrated in the \code{\link{residuals.DHARMa}} function. Please switch to using this function.
#' @param res an object with simulated residuals created by \code{\link{simulateResiduals}}
#' @param quantileFunction optional - a quantile function to transform the uniform 0/1 scaling of DHARMa to another distribution
#' @param outlierValue if a quantile function with infinite support (such as dnorm) is used, residuals that are 0/1 are mapped to -Inf / Inf. outlierValues allows to convert -Inf / Inf values to an optional min / max value.  
#' @export
transformQuantiles <- function(res, quantileFunction = qnorm, outlierValue = 7){
  message("This function is deprecated. Please use residuals() instead")

Try the DHARMa package in your browser

Any scripts or data that you put into this service are public.

DHARMa documentation built on Sept. 28, 2021, 5:10 p.m.