How to compute P-value and standard error from correlation analysis of R's cor()
问题 I have data that contain 54 samples for each condition (x and y). I have computed the correlation the following way: > dat <- read.table("http://dpaste.com/1064360/plain/",header=TRUE) > cor(dat$x,dat$y) [1] 0.2870823 Is there a native way to produce SE of correlation in R's cor() functions above and p-value from T-test? As explained in this web (page 14.6) 回答1: I think that what you're looking for is simply the cor.test() function, which will return everything you're looking for except for