I used caret package to train a glmnet model. I standardized the predictors. It seems like glmnet automatically standardize the predictors for me. So whether I use preProcess or not does not affect my result.
library(caret)
fit<- caret::train (price~carat+depth+cut,
data=diamonds[1:200,],
method= 'glmnet',
preProcess=c('center', 'scale'),
metric = "Rsquared")
I need to know the effect of predictor on my target variable. I can get the variable coefficients from code below.
coef(fit$finalModel, fit$bestTune$lambda)
My question is: Are these variable coefficient from the output in original scale or standardized scale? thanks.