Re: [R] probability from different values

2007-12-27 Thread Matthias Kohl
Matthias Kohl wrote: > one addition ... > >> Hello Ricardo, >> >> another solution could be using package distr: >> >> library(distr) >> A <- c(18,18,18,19,20,21,22,23,24,25,26,27,28) >> DA <- DiscreteDistribution(A) >> # maybe >> # support(DA) >> # plot (DA) >> >> B <- c(82,83,84,85,85,86,87,88

Re: [R] probability from different values

2007-12-27 Thread Matthias Kohl
one addition ... > Hello Ricardo, > > another solution could be using package distr: > > library(distr) > A <- c(18,18,18,19,20,21,22,23,24,25,26,27,28) > DA <- DiscreteDistribution(A) > # maybe > # support(DA) > # plot (DA) > > B <- c(82,83,84,85,85,86,87,88,89,90,91,91,92) > DB <- DiscreteDistrib

Re: [R] probability from different values

2007-12-27 Thread Matthias Kohl
Hello Ricardo, another solution could be using package distr: library(distr) A <- c(18,18,18,19,20,21,22,23,24,25,26,27,28) DA <- DiscreteDistribution(A) # maybe # support(DA) # plot (DA) B <- c(82,83,84,85,85,86,87,88,89,90,91,91,92) DB <- DiscreteDistribution(B) # support(DB) # plot(DB) DC <-

Re: [R] probability from different values

2007-12-27 Thread Richard . Cotton
> i have two vectors (A and B) and i need create another vector (C) > from the subtraction of A's values with the B's values. How can i > estimate the probability of C's values if i have differents values > combinations of A and B that can result in the same value? like 90 > -20 = 70 and 91 - 2

[R] probability from different values

2007-12-27 Thread Ricardo Perrone
Hi all, i'm new R user and i need some help: i have two vectors (A and B) and i need create another vector (C) from the subtraction of A's values with the B's values. How can i estimate the probability of C's values if i have differents values combinations of A and B that can result in the sam