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 |
; 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)
shows the density of the data before and after the Box-Cox transformation.