original_pred: Transform the predicted value to the original scale

Description Usage Arguments Value

View source: R/pred_original.R

Description

Using given standard deviation, mean, and lambda, transform the predicted value to the original scale. It also works for Box-Cox transformation.

Usage

1
original_pred(pred, sd = 1, mean = 0, boxcox_lambda = NULL)

Arguments

pred

Predicted value that should be scaled back.

sd

The Standard deviation used for scaling the outcome.

mean

The mean value used for centering the outcome

boxcox_lambda

The value used for Box-Cox transformation.

Value

The predicted value transformed to the scale of the original value.


SwanCygnus/predata documentation built on July 1, 2020, 12:09 a.m.