Regression coefficients

Share:

Description

This function returns the regression coefficients of a mypls-object.

Usage

1
2
## S3 method for class 'mypls'
coef(object,...)

Arguments

object

an object of class mypls that is returned by the function jack.ppls. Objects of the class mypls require a slot coefficients and a slot covariance.

...

additional parameters

Details

The function returns the regression coefficients (without intercept) for the model parameters assigned to jack.ppls. Together with the covariance matrix returned by vcov.mypls, it is possible to construct confidence intercals or tests.

Value

regression coefficients.

Author(s)

Nicole Kraemer

See Also

vcov.mypls,jack.ppls

Examples

1
2
3
4
5
6
7
8
9
n<-50 # number of observations
p<-5 # number of variables
X<-matrix(rnorm(n*p),ncol=p)
y<-rnorm(n)


pls.object<-penalized.pls.cv(X,y)
my.jack<-jack.ppls(pls.object)
mycoed<-coef(my.jack)