Re: [R] canoncial correlation

From: Soare Marcian-Alin <soarealin_at_gmail.com>
Date: Sun, 03 Jun 2007 00:43:55 +0200

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. Received on Sat 02 Jun 2007 - 22:47:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 03 Jun 2007 - 01:31:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.