[R] compute p/t value from pearson r and n

Martin Batholdy batholdy at googlemail.com
Sun Feb 24 22:29:17 CET 2013


Dear Miguel,

thanks!
But I actually do not have two vectors but just a correlation coefficient and want to get the p value.
As far as I can see it, cor.test only works when having raw data pairs or am I missing something?


On Feb 24, 2013, at 22:24 , Miguel Manese <jjonphl at gmail.com> wrote:

> Hi Martin,
> 
> See ?cor.test
> 
> example(cor.test)
> 
> Regards,
> - Jon
> 
> On Mon, Feb 25, 2013 at 5:06 AM, Martin Batholdy
> <batholdy at googlemail.com> wrote:
>> Hi,
>> 
>> is there a predefined function that computes the p- or t-value
>> based on a correlation coefficient and its sample size?
>> 
>> 
>> thanks!
>> 
>> ______________________________________________
>> 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