power_transform: Power transformation function.

View source: R/yeo-johnsonTransformation.R

power_transformR Documentation

Power transformation function.

Description

Computes a given power of a number.

Usage

power_transform(y, pw)

Arguments

y

The number which one wants to raise to a certain power pw.

pw

The power to which to raise y.

Value

This function returns the result of raising y to the power pw when y > 0. Otherwise, it will return 1.


depCensoring documentation built on April 4, 2025, 1:52 a.m.