[R] Question about bindata lib in high dimensions

Eric Berger er|cjberger @end|ng |rom gm@||@com
Mon Feb 11 11:22:40 CET 2019

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.


‪On Mon, Feb 11, 2019 at 11:52 AM ‫إيمان إسماعيل محمد‬‎ <
emanismail.92 using 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 using 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.

	[[alternative HTML version deleted]]

More information about the R-help mailing list