Try package CCA.


On Sat, Jul 12, 2014 at 11:13 PM, Monaly Mistry <monaly.mistry@gmail.com>
wrote:

> Hi,
>
> I was wondering if it's possible in R to do a canonical correlation with
> only one dependent variable and several independent variables.
>
> I've tried using cc(X,Y) but I got an error message. In this case I had 1
> dependent variable and 10 independent variables.
>
> Error in cor(X, use = "pairwise") :
>   supply both 'x' and 'y' or a matrix-like 'x'
>
> When I use two dependent variables I don't get the error message.
>
> Best,
>
> Monaly.
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

