boxcoxf: Apply a Box-Cox Transformation to a Vector

View source: R/boxcoxf.r

boxcoxfR Documentation

Apply a Box-Cox Transformation to a Vector

Description

Applies a Box-Cox transformation to a vector.

Usage

boxcoxf(shape, distr)

Arguments

shape

shape parameter

distr

the distribution

Value

Box-Cox tranformation of distr with shape.

Examples

x = rnorm(1000, mean = 0, sd = 0.25)
x.boxcox.pos = boxcoxf(0.5,x)
x.boxcox.neg = boxcoxf(-3.5,x)
par(mfrow = c(1,3))
hist(x)
hist(x.boxcox.pos)
hist(x.boxcox.neg)

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.