[R] Re : how to see inbuilt function(cor.test) & how to get p-value from t-value(test of significance) ?

Pascal Oettli kridox at ymail.com
Wed Mar 7 10:12:58 CET 2012


Hi,

Please take a look at http://svn.r-project.org/R/trunk/src/library/stats/R/cor.test.R

Pascal


----- Mail original -----
De : sagarnikam123 <sagarnikam123 at gmail.com>
À : r-help at r-project.org
Cc : 
Envoyé le : Mercredi 7 mars 2012 15h36
Objet : [R] how to see inbuilt function(cor.test) & how to get p-value from t-value(test of significance) ?

i can see source code of function

> cor
function (x, y = NULL, use = "everything", method = c("pearson", 
    "kendall", "spearman")) 
{
    na.method <- pmatch(use, c("all.obs", "complete.obs",
"pairwise.complete.obs", 
        "everything", "na.or.complete"))
-------------------------------------------------------------------------------------------------------------------------------------
but for cor.test,i gives

> cor.test
function (x, ...) 
UseMethod("cor.test")
<bytecode: 0x05a5bff8>
<environment: namespace:stats>

-------------------------------------------------------------------------------------------------------------------------------------
i want p-value calculation formula also,i have t-values(test of
significance) 


--
View this message in context: http://r.789695.n4.nabble.com/how-to-see-inbuilt-function-cor-test-how-to-get-p-value-from-t-value-test-of-significance-tp4452454p4452454.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help at r-project.org 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.




More information about the R-help mailing list