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@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.