coef.mypls: Regression coefficients

Description Usage Arguments Details Value Author(s) See Also Examples

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)


Search within the ppls package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.