[R] How to generate a correlated binary data set?
Greg Snow
538280 at gmail.com
Wed Jul 4 20:58:58 CEST 2012
A simple approach is to generate correlated normal data (mvrnorm
function in MASS package is one way), then use a cut-off to convert
them to binary.
On Wed, Jul 4, 2012 at 12:25 PM, Soyeon Kim <yunni0731 at gmail.com> wrote:
> Hi.
> I am trying to generate a correlated binary data set.
> I've tried to use mvtBinaryEP, binarySimCLF, and bindata packages but none
> of them works in R version 2.15.1.
> Do you know any package to generate correlated binary covariates and work
> in R version 2.15.1, or how to generate it?
>
> Thanks,
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
--
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com
More information about the R-help
mailing list