[R] left end or right end

David Winsemius dwinsemius at comcast.net
Thu Jul 1 15:00:25 CEST 2010


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 P(start1) - Q(Start2) < 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,
> Suku
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list