This function provides a coef method for the class "plsRglmmodel"
# S3 method for plsRglmmodel coef(object, type = c("scaled", "original"), ...)
object | an object of the class |
---|---|
type | if |
... | not used |
An object of class coef.plsRglmmodel
.
Coefficients of the components.
Coefficients of the scaled predictors in the regression function.
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-glm-family",family=gaussian())#> ____************************************************____ #> #> Family: gaussian #> Link function: identity #> #> ____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 #> 3.1434906 2.8745210 0.9766999 #> Coefficients of the predictors (original scale) #> [,1] #> Intercept 87.652763 #> X1 -5.930456 #> X2 -2.069198 #> X3 -9.607722 #> X4 -4.994568 #> X5 2.603934 #> X6 14.721801 #> X7 -20.912671#> Coefficients of the components #> Coeff_Comp_Reg 1 Coeff_Comp_Reg 2 Coeff_Comp_Reg 3 #> 3.1434906 2.8745210 0.9766999 #> Coefficients of the predictors (scaled scale) #> [,1] #> Intercept 88.5833333 #> X1 -0.5473211 #> X2 -0.4045974 #> X3 -0.5171213 #> X4 -1.1338145 #> X5 0.1486891 #> X6 4.3120090 #> X7 -0.5663178