Learn R Programming

describedata (version 0.1.1)

ladder: Replica of Stata's ladder function

Description

Searches the ladder of powers histograms to find a transformation to make x normally distributed. The Shapiro-Wilkes test is used to assess for normality. The following transformations are included: identity, cubic, square, square root, natural logarithm, inverse square root, inverse, inverse square, and inverse cubic.

Usage

ladder(x)

Value

A data.frame

Arguments

x

A continuous numeric vector.

Examples

Run this code
ladder(iris$Sepal.Length)
ladder(mtcars$disp)

Run the code above in your browser using DataLab