Displaying 1 result from an estimated 1 matches for "corout".
Did you mean:
conout
2008 Oct 24
1
Repetitive correlation test
Dear all,
Through the following code, I wanted to perform correlation test repetedly (through loop) on different combinations of variables of a data set.
Code:
x=read.table("sample.txt",header=T,sep="\t")
out="corout.txt"
sink(out)
nm = names(x)
print(nm)
nvr=3
# nvr=Total no. of variables in the input data file
for (i in 1:(nvr-1))
{
for(j in (i+1):nvr)
{
frm= as.formula(paste(nm[i+1],",",nm[j+1],sep="")) ($$)
crl=cor.test(frm,alternative="two.sided",method="...