coef.seedCCA {seedCCA} | R Documentation |
Coefficients of ordinary and partial least squares through iterative projections
Description
Returns coefficients of partial least squares through iterative projections. It works only for subclasses "seedols" and seedpls".
Usage
## S3 method for class 'seedCCA'
coef(object, u=NULL,...)
Arguments
object |
The name of an object of class "seedCCA" |
u |
numeric, the number of projections. The default is NULL. This option is valid for PLS alone. The option returns the coefficient estimates for u projections. For example, if it is specified at k, then the coefficient estimates with k projections are returned. |
... |
arguments passed to the coef.method |
Examples
######## data(cookie) ########
data(cookie)
myseq<-seq(141,651,by=2)
X<-as.matrix(cookie[-c(23,61),myseq])
Y<-as.matrix(cookie[-c(23,61),701:704])
fit.ols1 <- seedCCA(X[,1:4], Y[,1], type="cca")
fit.pls1 <- seedCCA(X,Y[,1],type="pls")
coef(fit.ols1)
coef(fit.pls1)
coef(fit.pls1, u=4)
[Package seedCCA version 3.1 Index]