Library: | stats |
See also: | twboxcox boxcox boxcoxdens |
Quantlet: | hinesplot | |
Description: | computes the Hines & Hines plot for a fixed p and a set of quantiles. |
Usage: | hinesplot(x, p, q, hines, sel) | |
Input: | ||
x | n x q | |
p | scalar transformation parameter | |
q | m x 1 quantiles (<0.5) | |
hines | display of size (1,2) | |
sel | text "new" if you want to start a new plot, otherwise "old" |
; loads the library stats library("stats") ; loads the library graphic library("graphic") ; reset random generator randomize(0) ; generate x x = normal(200) x = x.*x ; create a display t = createdisplay(1,2) ; find interactively a best transformation hinesplot(x, 1, 0.25, t, "new")
returns the data transformed by interactive choice of p