Re: [R] Question about bindata

2019-02-17 Thread إيمان إسماعيل محمد
Thanks a lot Jeff I sent to authors and I hope can find these function or even alternatives On Sun, 17 Feb 2019 at 17:11, Jeff Newmiller wrote: > I would guess in an archived version of the package [1], though they may > have been moved to another package. Such an old package probably will not

Re: [R] Question about bindata

2019-02-17 Thread Jeff Newmiller
I would guess in an archived version of the package [1], though they may have been moved to another package. Such an old package probably will not work on a modern version of R... you can extract the functions and see if they still run. Note that those functions may have theoretical issues or m

[R] Question about bindata

2019-02-17 Thread إيمان إسماعيل محمد
Hi all, I am wondering that I can't find the following functions: - higher.cor - input.cor - pairprob - pdef in bindata lib as mentioned in the following paper: http://epub.wu.ac.at/486/1/document.pdf How can I reach these functions?? Thanks [[alternative HTML version delet

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