[R] canoncial correlation

From: Soare Marcian-Alin <soarealin_at_gmail.com>
Date: Sat, 26 May 2007 20:00:20 +0200


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!

-- 
Mit freundlichen Grüssen / Best Regards

Soare Marcian-Alin

	[[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 26 May 2007 - 18:05:09 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 Sat 02 Jun 2007 - 23:31:28 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.