Re: [R] calculate probability of union of independent events

2014-02-18 Thread Ted Harding
On 18-Feb-2014 22:08:38 Meinfelder, Florian wrote: > Dear all, > > I am looking for a way to calculate the probability of the union of k > independent events in R. Is there a function that takes a k-dimensional > probability vector as input and returns p(A_1 U A_2 U...U A_k)? > > Thanks, > Floria

[R] calculate probability of union of independent events

2014-02-18 Thread Meinfelder, Florian
Dear all, I am looking for a way to calculate the probability of the union of k independent events in R. Is there a function that takes a k-dimensional probability vector as input and returns p(A_1 U A_2 U...U A_k)? Thanks, Florian ___ Dr. Flor

[R] calculate probability circles

2011-04-26 Thread cindy Guo
Hi, All, I want to have the 1%, 2%, 3%, ... contours for Dirichlet distribution. I need the exact contour circles (mathematically) instead of contour plots. Can anyone help me with this? Many thanks, Cindy [[alternative HTML version deleted]] ___

Re: [R] calculate probability

2010-11-06 Thread Ted Harding
On 06-Nov-10 11:16:28, Jumlong Vongprasert wrote: > Dear All > I have some problem with calculate probability. > Assume I have data with normal distribution with mean = 5 sd = 2. > I want to approximate probability = 2.4. > I used pnorm(2.4, 5, 2) - pnorm(2.4, 5, 2, lower.tail = FLASE), > correct o

[R] calculate probability

2010-11-06 Thread Jumlong Vongprasert
Dear All I have some problem with calculate probability. Assume I have data with normal distribution with mean = 5 sd = 2. I want to approximate probability = 2.4. I used pnorm(2.4, 5, 2) - pnorm(2.4, 5, 2, lower.tail = FLASE), correct or not. Many Thanks Jumlong __

Re: [R] calculate probability

2010-11-05 Thread Joshua Wiley
Hi Jumlong, Is this what you want? > pnorm(q = c(2.4, 2.9), mean = 2, sd = 1) [1] 0.6554217 0.8159399 HTH, Josh On Fri, Nov 5, 2010 at 9:57 PM, Jumlong Vongprasert wrote: > Dear Joshua Wiley > 2.4 and 2.9 are score, and mean = 2 variance = 1 n = 10 with normal > distribution. > Many Thanks.

Re: [R] calculate probability

2010-11-05 Thread Joshua Wiley
Dear Jumlong, Perhaps look at ?pnorm I am not really certain what you want to do. Are 2.4 and 2.9 scores or means? Is the variance 2? What distribution are you assuming these values come from? If you explain a bit more what you are after, we can help more. Cheers, Josh On Fri, Nov 5, 2010

[R] calculate probability

2010-11-05 Thread Jumlong Vongprasert
Dear All I have 2 value assume 2.4 and 2.9 and mean = 2 variance = with n = 10 I want to find probability = 2.4 and 2.9. How I can do this. Many Thanks. Jumlong -- Jumlong Vongprasert Assist, Prof. Institute of Research and Development Ubon Ratchathani Rajabhat University Ubon Ratchathani THAILAN