Re: [R] Calculate an equation

2008-11-20 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 20.11.2008 16:15:44: > > I tried to do some cycles using the ?for? function, but then I had to make > multiple ?for?s and it didn?t work. One of the major problems is that I > don?t know how to use the summation function on R. I did not find function summation.

Re: [R] Calculate an equation

2008-11-20 Thread P.Branco
I tried to do some cycles using the “for” function, but then I had to make multiple “for”s and it didn’t work. One of the major problems is that I don’t know how to use the summation function on R. Best regards, P.Branco stephen sefick wrote: > > What have you tried so far? > > On Thu, Nov 20

Re: [R] Calculate an equation

2008-11-20 Thread stephen sefick
What have you tried so far? On Thu, Nov 20, 2008 at 7:40 AM, P.Branco <[EMAIL PROTECTED]> 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

[R] Calculate an equation

2008-11-20 Thread P.Branco
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 (