[R] canoncial correlation

Gabor Grothendieck ggrothendieck at gmail.com
Sun Jun 3 03:18:04 CEST 2007


See ?biplot.princomp

On 6/2/07, Soare Marcian-Alin <soarealin at gmail.com> wrote:
> hello,
>
> Does nobody know what the problem could be? :((((
>
> 2007/5/26, Soare Marcian-Alin <soarealin at gmail.com>:
> >
> > Hello,
> >
> > I have a problem with the function concar:
> >
> > data set: http://www.statistik.tuwien.ac.at/public/filz/students/multi/ss07/world2.R
> >
> >
> > source("world2.R")
> >
> > world[,8] <- log(world[,8])
> > world[,9] <- log(world[,9])
> > x <- world[,-c(1,2)]
> > x <- scale(x)
> >
> > a <- cancor(x[,-c(6:9)],x[,-c(1:5)])
> > attributes(a)
> > a
> >
> > How do I plot the first two canonial variables of a? And I want to take
> > the rownames of world as pch ...
> >
> > plot(..., pch=rownames(world), col=as.numeric(world[,1]))
> >
> > Thanks in advance!
> >
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>



More information about the R-help mailing list