Learn R Programming

depCensoring (version 0.1.7)

power_transform: Power transformation function.

Description

Computes a given power of a number.

Usage

power_transform(y, pw)

Value

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

Arguments

y

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

pw

The power to which to raise y.