Question about bindata lib in high dimensions
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.92 at gmail.com> wrote:?
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, simulvals) :
Matrix commonprob not admissible.
and I tried to get the elements within range but still have the same
problem
How can I fix the correlation matrix or how to track error ??
Thanks
Eman
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.