Hi Gireesh,
I seem to be missing something.
Could you give me the formula you think should be used to calculate this?
I don't get how you wish to get a "correlation" for only one pair of
numbers.
(or maybe I didn't understood what you explained - please try a simpler
example)


----------------Contact
Details:-------------------------------------------------------
Contact me: tal.gal...@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
----------------------------------------------------------------------------------------------




On Tue, Nov 23, 2010 at 10:03 AM, gireesh bogu <girishb...@gmail.com> wrote:

> in one output
>
> x - S1 i.e. 112 with all combinations ex:
>
>
> 112 vs 3 [ x-S1 vs a -S1]
>
> 112 vs 4 [ x-S1 vs a- S2 ]
>
> 112 vs 45
>
> 112 vs 34
>
> 112 vs 23
>
> 112 vs 112
>
> …………….
>
> ……………..
>
> 112 vs 1
>
>
> in second output
>
> x - S2 i.e. 0 with all ……………………. ex:
>
> 0 vs 3
>
> 0 vs 4
>
> ………
>
> ………
>
> 0 vs 1
>
>
> in next output
>
> x-S3 i.e. 12 with all …………… and so on
>
>
> Probably in the given input I should get 5 outputs because of 5 samples
> S1,2,3,4,n.
>
> If they are more like 69 or some thing then I should get 69 outputs or
> everything in one output if possible.
>
>
> Please let me know if it is still confusing.
>
>
> thanx
>
> On Tue, Nov 23, 2010 at 3:35 PM, Tal Galili <tal.gal...@gmail.com> wrote:
>
>> Hi there,
>> I'm not sure I understand your question.
>>
>> What are the two vectors you wish to check their correlation?
>> Are they the two rows x and a?
>> Because from your example it seems you are trying to do a correlation
>> between two singular numbers (so probably I didn't get something straight).
>>
>> Tal
>>
>>
>>
>> ----------------Contact
>> Details:-------------------------------------------------------
>> Contact me: tal.gal...@gmail.com |  972-52-7275845
>> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
>> www.r-statistics.com (English)
>>
>> ----------------------------------------------------------------------------------------------
>>
>>
>>
>>
>> On Tue, Nov 23, 2010 at 8:57 AM, gireesh bogu <girishb...@gmail.com>wrote:
>>
>>> Hi guys
>>>
>>> I have an input file with multiple columns and and rows.
>>> Is it possible to calculate correlation of certain value of certain No
>>> (For
>>> example x of S1 = 112) with all other values (for example start with x
>>> 112
>>> corr a 3 of S1 = x-a 0.2 )
>>>
>>> INPUT
>>> *******
>>>
>>> No  S1  S2  S3  S4  Sn
>>> a    3     4     45  34   23
>>> x   112   0    12   23   0
>>> b    0     1     23   12   1
>>> n    0     1     0      1    1
>>>
>>> OUTPUT
>>> ***********
>>>
>>> No  S1  S2  S3  S4  Sn
>>> x-a  0.2   0.3 ...............
>>> x-x  1     1  ................
>>> x-b  0..........................
>>> x-n  0.9 .......................
>>>
>>>        [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-help@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.
>>>
>>
>>
>
>
> --
> Regards
>
> Gireesh
> #HP#8375-9256
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to