Skip to content
Back to formatted view

Raw Message

Message-ID: <732E898C-F7C0-40B5-9155-B3A68730FE9A@googlemail.com>
Date: 2013-02-24T21:29:17Z
From: Martin Batholdy
Subject: compute p/t value from pearson r and n
In-Reply-To: <CAK2ScDi5peJ41hPU64vOhjsKuusSPz2RAvjY7zG1UNBQpK9L9A@mail.gmail.com>

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.