Learn R Programming

power.transform (version 1.0.1)

revert_power_transform: Revert transformation

Description

revert_power_transform reverts the transformation of numeric values to normality.

Usage

revert_power_transform(y, transformer)

Value

A vector of values.

Arguments

y

A vector with numeric values that was previously transformed to normality.

transformer

A transformer object created using find_transformation_parameters that was used to transform the values to normality previously. Cannot be NULL.

Examples

Run this code
x0 <- exp(stats::rnorm(1000))

transformer <- find_transformation_parameters(
  x = x0,
  method = "box_cox")

y <- power_transform(
  x = x0,
  transformer = transformer)

x1 <- revert_power_transform(
  y = y,
  transformer = transformer)

Run the code above in your browser using DataLab