bru_transformation | R Documentation |
Tools for transforming between N(0,1) variables and other distributions in predictor expressions
bru_forward_transformation(qfun, x, ..., tail.split. = 0)
bru_inverse_transformation(pfun, x, ..., tail.split. = NULL)
qfun |
A quantile function object, such as |
x |
Values to be transformed |
... |
Distribution parameters passed on to the |
tail.split. |
For x-values larger than |
pfun |
A CDF function object, such as |
For bru_forward_transformation
, a numeric vector
For bru_inverse_transformation
, a numeric vector
u <- rnorm(5, 0, 1)
y <- bru_forward_transformation(qexp, u, rate = 2)
v <- bru_inverse_transformation(pexp, y, rate = 2)
rbind(u, y, v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.