| Library: | stats |
| See also: | twboxcox |
| Quantlet: | boxcoxdens | |
| Description: | shows the change in the density before and after a Box-Cox transformation of x |
| Usage: | boxcoxdens (x, p) | |
| Input: | ||
| x | n x q | |
| p | scalar | |
; 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.
| Library: | stats |
| See also: | twboxcox |