myBoxCox: myBoxCox(x) A Box-Cox transformation function.

Description Usage Arguments Value Author(s) Examples

View source: R/myBoxCox.R

Description

This function calculates the theta value for the y^theta box-cox transformation to obtain normally distributed transformed data.

Usage

1

Arguments

x

A vector of data to be transformed to normality.

Value

x A list containing two objects.

x$theta The theta value to use for the box-cox transformation.

x$directions A text string reminder for how to perform the transformation using theta.

Author(s)

Jennifer Starling

Examples

1
2
x_lognorm <- rlnorm(100, meanlog = 0, sdlog = 1)
x_norm <- myBoxCox(x)

jstarling1/starlib documentation built on May 20, 2019, 2:12 a.m.