pow | R Documentation |
Raises censored data to a positive power.
pow(x, lambda, out = "Auto")
x |
any object that can be converted to class "mcens" or "lcens." Must be non negative (zero data are permitted). Missing values are permitted and missing vlues in the returnned vector. |
lambda |
the power to raise |
out |
the output format, must be one of "numeric," "lcens," "mcens," or "Auto." If "Auto," then if
|
An object of class "mcens" that is the result of the requested operations. Each of the range of the
lower and upper values are raised to the power of lambda
and the result divided by lambda
to approximately maintain scale. But the reciprocal value of lambda
cannot be used to restore the
original values.
pow(as.mcens(c(0,2), c(1,2)), 2) pow(as.mcens(c(0,2), c(1,2)), .5) # Numeric values pow(c(1,3), 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.