Closed zenggyu closed 5 years ago
The feasts
package provides the guerrero()
function, which uses Guerrero's method to determine an appropriate Box Cox transformation parameter.
Because of transformation is more general in fable I haven't figured out how box_cox(lambda = "auto")
can be implemented whilst retaining automatic back transformation. I could implement this and raise an error whenever the transformations are back-transformed.
Currently we recommend a two step process, first determine the appropriate lambda using features(data, response_variable, guerrero)
and then use the saved best result in the transformation.
Oh, I didn't know about that, thanks!
The function
BoxCox.lambda()
in theforecast
package provides such functionality. It would be nice to include it infabletools::box_cox()
, perhaps through an additional parametermethod
that can be used to specify the selection method (defaults tomethod = NULL
, meaning no auto selection).