[R] How to save components in pls model

Hossein Shafizadeh h@h@|eez@deh @end|ng |rom gm@||@com
Sun Jun 23 08:52:33 CEST 2019


Hello everyone,
I want to *save the components *when using pls, I tried several ways but
failed.
No matter if using the caret package or in other coding formats. The code
in the caret is:
factors <- c("a","b","c")
set.seed(123)
silt <- caret::train(extsentinel[,factors],extsentinel$Silt,metric="RMSE",
                method="pls",tuneLength = 10 , importance=T, verbose=FALSE,
                trControl=trainControl(method="cv",savePredictions =
"final"),
                returnData=T, preProc = c("BoxCox","center", "scale"))

Thanks in advance,
Hossein

	[[alternative HTML version deleted]]



More information about the R-help mailing list