[R-sig-Geo] How to save components in pls model

Hossein Shafizadeh h@h@|eez@deh @end|ng |rom gm@||@com
Sat Jun 22 16:05:08 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-sig-Geo mailing list