boxcox_itr | R Documentation |
Inverse Box-Cox transformation
boxcox_itr(x, lambda)
x |
vector or raster values to be transformed |
lambda |
numeric. parameter of Box-Cox transformation |
a vector or raster of transformed values
boxcox_tr
Box-Cox transformation,
boxcox_itr_bias_cor
inverse Box-Cox transformation with bias
correction.
x <- 1:10
boxcox_itr(x, 0)
boxcox_itr(x, 0.5)
boxcox_itr(x, 2)
boxcox_itr(boxcox_tr(x, 2), 2)
# plot functions
curve(boxcox_itr(x, 0), 0, 3,
col = "blue", main = "inverse Box Cox transf.",
xlab = "x", ylab = "inverse Boxcox(x, lambda)"
)
curve(boxcox_itr(x, 1.5), 0, 3, col = "red", add = TRUE)
curve(boxcox_itr(x, 0.5), 0, 3, col = "black", add = TRUE)
curve(boxcox_itr(x, 1), 0, 3, col = "pink", add = TRUE)
legend("topleft",
legend = c("lambda", 0, 0.5, 1, 1.5),
col = c(NA, "blue", "black", "pink", "red"), lty = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.