[R] Calculate an equation

stephen sefick ssefick at gmail.com
Thu Nov 20 15:46:01 CET 2008


What have you tried so far?

On Thu, Nov 20, 2008 at 7:40 AM, P.Branco <pjlbranco at yahoo.com> wrote:
>
> 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,
> P.Branco
>
> --
> 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
> 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.
>



-- 
Stephen Sefick
Research Scientist
Southeastern Natural Sciences Academy

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis


More information about the R-help mailing list