Oh, and of course you need to use an explicit print inside a for loop.
So, the line would be:
print( polychor(sdi[,i], sdi[,j]))
On 19/10/06, David Barron [EMAIL PROTECTED] wrote:
The problem is that in the expression polychor(vars[i], vars[j]),
vars[i] and vars[j] refer to the names of
The problem is that in the expression polychor(vars[i], vars[j]),
vars[i] and vars[j] refer to the names of the variables, not the
variables themselves. So, use sdi[,i] and sdi[,j] instead.
On 19/10/06, Kum-Hoe Hwang [EMAIL PROTECTED] wrote:
Hi
I have used a polycor package for categorical
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Barron
Sent: Thursday, October 19, 2006 5:54 AM
To: Kum-Hoe Hwang; r-help
Subject: Re: [R] How to get multiple Correlation Coefficients
The problem is that in the expression polychor(vars[i],
vars[j]), vars[i