Skip to content

filter correlation data

3 messages · Bert Gunter, Elham -

#
hello everybody,I have a very very huge table in R from calculating correlation,how can I filter it per spearman correlation and p-value before export it,I mean what is the function that I use?I want to select the pairs for value (r), , greater than 0.9 (directly correlated) and less than -0.9 (inversely corerlated), and a p-value < 0.001


I should say that I?transformed the big matrix in a table by library(reshape).
#
... And why did you not do a web search on "correlation coefficient in
R", which would have led you almost imediately to ?cor and friends?

-- Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Tue, Jan 31, 2017 at 1:34 PM, Elham - via R-help
<r-help at r-project.org> wrote:
#
actually,First I searched in net,after that I sent my question, because I couldn't find the function.
On Wednesday, February 1, 2017 1:34 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
... And why did you not do a web search on "correlation coefficient in
R", which would have led you almost imediately to ?cor and friends?

-- Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Tue, Jan 31, 2017 at 1:34 PM, Elham - via R-help
<r-help at r-project.org> wrote: