Learn R Programming

plsdof (version 0.2-1)

coef.plsdof: Regression coefficients

Description

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

Usage

## S3 method for class 'plsdof':
coef(object,...)

Arguments

object
an object of class "plsdof" that is returned by the functions pls.ic and pls.cv.
...
additional parameters

Value

  • regression coefficients.

Details

The function returns the regression coefficients (without intercept) for the optimal number of components.

References

Kraemer, N., Sugiyama M. (2010). "The Degrees of Freedom of Partial Least Squares Regression". preprint http://arxiv.org/abs/1002.4112 Kraemer, N., Braun, M.L. (2007) "Kernelizing PLS, Degrees of Freedom, and Efficient Model Selection", Proceedings of the 24th International Conference on Machine Learning, Omni Press, 441 - 448

See Also

vcov.plsdof, pls.model, pls.ic, pls.cv

Examples

Run this code
n<-50 # number of observations
p<-5 # number of variables
X<-matrix(rnorm(n*p),ncol=p)
y<-rnorm(n)


pls.object<-pls.ic(X,y,criterion="bic")
mycoef<-coef(pls.object)

Run the code above in your browser using DataLab