[R] Calculate an equation

From: P.Branco <pjlbranco_at_yahoo.com>
Date: Thu, 20 Nov 2008 04:40:13 -0800 (PST)

Dear all,

I was wondering if you could help me with the following.

I want to do calculate this equation:

Ps(t)= (∑_(r=1)^N Xtr* 1/√drs)/(∑_(r=1)^N 1/√drs)

Ps(t) – Probability that taxon t will occur at site s (300 sites s) N – Number of sites = from 1 to 49
Xtr – Value for taxon t at site r (I have this information in a table, 40 taxa (columns) t, 49 sites r)
drs – Distance from site r to site s (this information is on a table, s sites (columns))

I thought that R would be the software to use, but I am experiencing some difficulties

Thanks to everyone,

View this message in context: http://www.nabble.com/Calculate-an-equation-tp20600332p20600332.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 20 Nov 2008 - 12:43:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 20 Nov 2008 - 15:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive