Re: [R] Question about bindata lib in high dimensions

2019-02-11 Thread إيمان إسماعيل محمد
even I tried to use another library mipfp to generate multivariate Bernoulli *using the following:* > p.joint <- ObtainMultBinaryDist(corr = corr_mat[1:10,1:10], marg.probs = probs[1:10]) *it Shows:* Problematic pairs: row col [1,] 10 9 [2,] 9 10 Warning messages: 1: In Corr2PairProbs(co

Re: [R] Question about bindata lib in high dimensions

2019-02-11 Thread إيمان إسماعيل محمد
*Here Sample of Code for 10 variables:* > probs_10 = probs[1:10] > probs_10 [1] 9.795272e-01 9.331778e-01 6.764349e-01 9.884067e-02 9.52e-05 3.499417e-03 2.380556e-05 9.826457e-01 9.628633e-01 8.874949e-01 > corr_mat_10 = corr_mat[1:10,1:10] > corr_mat_10 [,1] [,2]

Re: [R] Question about bindata lib in high dimensions

2019-02-11 Thread Eric Berger
Hi Eman, It helps if you create a small example that reproduces the problem and then post the code with your question. This will help people determine what is causing the problem. Best, Eric ‪On Mon, Feb 11, 2019 at 11:52 AM ‫إيمان إسماعيل محمد‬‎ < emanismail...@gmail.com> wrote:‬ > I need to s

[R] Question about bindata lib in high dimensions

2019-02-11 Thread إيمان إسماعيل محمد
I need to simulate data for 2000 binary variables given a vector of marginal probabilities and a correlation matrix. I used bindata library, but it give me Not all probabilities are between 0 and 1. Error in Element ( i , j ): Admissible values are in [.]. Error in commonprob2sigma(commonprob