ct <- corTest(attitude)
#ct <- corr.test(attitude) #find the correlations and give the probabilities
ct #show the results
cts <- corr.test(attitude[1:3],attitude[4:6]) #reports all values corrected for multiple tests
#corr.test(sat.act[1:3],sat.act[4:6],adjust="none") #don't adjust the probabilities
#take correlations and show the probabilities as well as the confidence intervals
print(corr.p(cts$r,n=30),short=FALSE)
#don't adjust the probabilities
print(corr.test(sat.act[1:3],sat.act[4:6],adjust="none"),short=FALSE)
#print out the stars object without showing quotes
print(corr.test(attitude)$stars,quote=FALSE) #note that the adjusted ps are given as well
kendall.r <- corr.test(bfi[1:40,4:6], method="kendall", normal=FALSE)
#compare with
cor.test(x=bfi[1:40,4],y=bfi[1:40,6],method="kendall", exact=FALSE)
print(kendall.r,digits=6)
Run the code above in your browser using DataLab