tests/testthat/helper-transforms.R

# Test data shared by test-BoxCoxTrans.R and test-expoTrans.R.
#
# Right-skewed (lognormal) positive data, the kind a power transform is meant to
# symmetrise. A fixed seed makes the estimated lambdas deterministic.
set.seed(1)
skew_y <- rlnorm(120)

Try the caret package in your browser

Any scripts or data that you put into this service are public.

caret documentation built on Nov. 15, 2026, 9:06 a.m.