Re: [R] [FORGED] Re: correlated binomial random variables

2015-10-08 Thread li li
Thanks Dennis and Rolf. Yes. Simulation is one way. I think correlation does not determine the joint distribution so it will not be unique. Under specific settings, the joint probability of X, Y can be calculated. For example, let X=X_0+X_1 and Y=X_0+X_2, with X_0 being Binomial(n_0, p) and X_1, an

Re: [R] [FORGED] Re: correlated binomial random variables

2015-10-05 Thread Rolf Turner
On 06/10/15 04:43, li li wrote: Hi all, Using the "bindata" package, it is possible to gerenerate correlated binomial random variables both with the same number of trials, say n. I am wondering whether there is an R function to calculate the joint probability distribution of the correlated bi