coef.seedCCA | R Documentation |
Returns coefficients of partial least squares through iterative projections. It works only for subclasses "seedols" and seedpls".
## S3 method for class 'seedCCA' coef(object, u=NULL,...)
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 |
######## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.