I am trying to transform data in a vector in R.
This is not for linear regression so I don\'t have a predictor and response relationship. I am simply using a model that
For applying box cox transformation on vector, use forecast package in r:
library(forecast) # to find optimal lambda lambda = BoxCox.lambda( vector ) # now to transform vector trans.vector = BoxCox( vector, lambda)