Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: stats
See also: twboxcox

Quantlet: boxcoxdens
Description: shows the density before and after a Box-Cox transformation of x.

Usage: boxcoxdens (x, p)
Input:
x n x q matrix of input variables
p scalar, parameter for the Box-Cox transformation (x^p-1)./p

Example:
; loads the library stats
library("stats")
; loads the library graphic
library("graphic")
; loads the library graphic
library("smoother")
; reset random generator
randomize(0)
; generate x(skewed)
x = 0.05+0.9.*uniform(250)
x = qfc(x, 2)
; show the densities
boxcoxdens(x, 0)

Result:
shows the density of the data before and after the
Box-Cox transformation.



Author: S. Hannappel, S. Klinke, 19970820
(C) MD*TECH Method and Data Technologies, 05.02.2006