| robust_bcyj | R Documentation |
robust_bcyj() was deprecated in specProc 0.9.0: use robust_boxcox()
or robust_yeojohnson() instead, which return a fitted object that
predict() applies to new data. It
still works, with a warning.
robust_bcyj(x, var = NULL, type = "bestObj", quantile = 0.99, nbsteps = 2)
x |
A data frame or tibble containing the variables to be transformed. |
var |
A vector of character or numeric variable names to be transformed.
If |
type |
A character string specifying the transformation method(s) to use. Allowed values are "BC", "YJ", or "bestObj" (default: Box-Cox or Yeo-Johnson, whichever fits best, for strictly positive variables). |
quantile |
A numeric value between 0 and 1 specifying the quantile to use for determining the weights in the re-weighting step. Default is 0.99. |
nbsteps |
An integer specifying the number of re-weighting steps to perform. Default is 2. |
A list containing two data frames:
summary:
variable: the variable(s) name
lambda: the estimated lambda parameter
method: the method used ('BC' for Box-Cox, 'YJ' for Yeo-Johnson, or
'none')
objective: the objective function value
transformation:
the transformed variable(s)
Christian L. Goueguel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.