Learn R Programming

plsRglm (version 1.5.1)

coef.plsRglmmodel: coef method for plsR models

Description

This function provides a coef method for the class "plsRglmmodel"

Usage

# S3 method for plsRglmmodel
coef(object, type = c("scaled", "original"), ...)

Value

An object of class coef.plsRglmmodel.

CoeffC

Coefficients of the components.

Std.Coeffs

Coefficients of the scaled predictors in the regression function.

Coeffs

Coefficients of the untransformed predictors (on their original scale).

Arguments

object

an object of the class "plsRglmmodel"

type

if scaled, the coefficients of the predictors are given for the scaled predictors, if original the coefficients are to be used with the predictors on their original scale.

...

not used

See Also

Examples

Run this code

data(Cornell)
XCornell<-Cornell[,1:7]
yCornell<-Cornell[,8]
modpls <- plsRglm(yCornell,XCornell,3,modele="pls-glm-family",family=gaussian())
class(modpls)
coef(modpls)
coef(modpls,type="scaled")
rm(list=c("XCornell","yCornell","modpls"))

Run the code above in your browser using DataLab