This function provides a coef method for the class "plsRmodel"
# S3 method for plsRmodel coef(object, type = c("scaled", "original"), ...)
object | an object of the class |
---|---|
type | if |
... | not used |
An object of class coef.plsRmodel
.
Coefficients of the components.
Coefficients of the scaled predictors.
Coefficients of the untransformed predictors (on their original scale).
Frédéric Bertrand
frederic.bertrand@utt.fr
https://fbertran.github.io/homepage/
data(Cornell) XCornell<-Cornell[,1:7] yCornell<-Cornell[,8] modpls <- plsRglm(yCornell,XCornell,3,modele="pls")#> ____************************************************____ #> #> Model: pls #> #> ____Component____ 1 ____ #> ____Component____ 2 ____ #> ____Component____ 3 ____ #> ____Predicting X without NA neither in X nor in Y____ #> ****________________________________________________**** #>#> [1] "plsRglmmodel"#> Coefficients of the components #> Coeff_Comp_Reg 1 Coeff_Comp_Reg 2 Coeff_Comp_Reg 3 #> 0.4820365 0.2731127 0.1030689 #> Coefficients of the predictors (original scale) #> [,1] #> Intercept 92.675989 #> X1 -9.828318 #> X2 -6.960181 #> X3 -16.666239 #> X4 -8.421802 #> X5 -4.388934 #> X6 10.161304 #> X7 -34.528959#> Coefficients of the components #> Coeff_Comp_Reg 1 Coeff_Comp_Reg 2 Coeff_Comp_Reg 3 #> 0.4820365 0.2731127 0.1030689 #> Coefficients of the predictors (scaled scale) #> [,1] #> Intercept 0.00000000 #> X1 -0.13909167 #> X2 -0.20869374 #> X3 -0.13755531 #> X4 -0.29316826 #> X5 -0.03843049 #> X6 0.45638984 #> X7 -0.14338442