revert_power_transform: Revert transformation

View source: R/FindParameters.R

revert_power_transformR Documentation

Revert transformation

Description

revert_power_transform reverts the transformation of numeric values to normality.

Usage

revert_power_transform(y, transformer)

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.

Value

A vector of values.

Examples

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)

power.transform documentation built on April 12, 2025, 5:08 p.m.