rxode2 general transformation function
.rxTransform( x, lambda = 1, low = 0, high = 1, transform = c("boxCox", "yeoJohnson", "untransformed", "lnorm", "logit", "logit + yeoJohnson", "probit", "probit + yeoJohnson", "logit + boxCox", "probit + boxCox"), inverse = FALSE )
x
: value that will be transformedlambda
: lambda value for the transformationlow
: lower bound for the transformationhigh
: upper bound for the transformationtransform
: transformation to use (can be integer or string matching supported transformations)inverse
: boolean if the inverse transformation should be performedtransformed value
logit(0.25) .rxTransform(0.25, transform="logit") expit(-1.09) .rxTransform(-1.09, transform="logit", inverse=TRUE)
Matthew L. Fidler
Useful links