box.cox(1:10, 2)
## [1] 0.0 1.5 4.0 7.5 12.0 17.5 24.0 31.5 40.0 49.5
box.cox(-5:5, 2)
## [1] 0.0 1.5 4.0 7.5 12.0 17.5 24.0 31.5 40.0 49.5 60.0
## Warning message:
## start = 6 added to data prior to transformation in: box.cox(-5:5, 2)
options(digits=4)
box.cox(-5:5, 0, start=6)
## [1] 0.0000 0.6931 1.0986 1.3863 1.6094 1.7918 1.9459 2.0794 2.1972
## [10] 2.3026 2.3979
Run the code above in your browser using DataLab