[R] left end or right end

David Winsemius dwinsemius at comcast.net
Thu Jul 1 15:06:43 CEST 2010


On Jul 1, 2010, at 9:00 AM, David Winsemius wrote:

>
> On Jul 1, 2010, at 7:53 AM, ravikumar sukumar wrote:
>
>> Dear all,
>> I am a biologist. I have two sets of distance P(start1, end1) and  
>> Q(start2,
>> end2).
>> The distance will be like this.
>> P         ------------------------
>> Q  ----------------------------------------
>>
>> I want to know whether P falls closely to the right end or left   
>> end of Q.
>> P and Q are of different lengths for each data point.
>
> Do you want to know whether

Should have been : abs( P(start1) - Q(Start2) ) < abs( P(end1) -  
Q(end2) )

>
> The arithmetic operators and comparison operators are vectorized.
>
>> There are more than
>> 10000 pairs of P and Q.
>
> You could offer an example:
>
> ?head
>
>> Is there any test or function in R to bring a statistically  
>> significant
>> conclusion.
>
> ?binom.test  # if my interpretation above is what you were asking.
>
>>
>> Thanks for all,

>

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list