bru_forward_transformation: Transformation tools
Description
Tools for transforming between N(0,1) variables and other
distributions in predictor expressions
Usage
bru_forward_transformation(qfun, x, ..., tail.split. = 0)bru_inverse_transformation(pfun, x, ..., tail.split. = NULL)
Arguments
- qfun
A quantile function object, such as qexp
- x
Values to be transformed
- ...
Distribution parameters passed on to the qfun
and pfun
functions
- tail.split.
For x-values larger than tail.split.
, upper quantile calculations
are used internally, and for smaller values lower quantile calculations are used. This
can avoid lack of accuracy in the distribution tails. If NULL
, forward calculations split at 0,
and inverse calculations use lower tails only, potentially losing accuracy in the upper tails.
- pfun
A CDF function object, such as pexp
Examples
Run this codeif (FALSE) {
if (interactive()) {
# EXAMPLE1
}
}
Run the code above in your browser using DataLab