[R] How to generate a correlated binary data set?

Peter Ehlers ehlers at ucalgary.ca
Wed Jul 4 21:25:52 CEST 2012


On 2012-07-04 11:25, Soyeon Kim 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.
[...]

You'll have to be more forthcoming about what you mean
by "works". What error is produced? I just tried the examples
in mvtBinaryEP and in bindata and both work just fine for me.

Perhaps you don't have the mvtnorm package installed?

 > sessionInfo()
R version 2.15.1 Patched (2012-06-27 r59661)
Platform: x86_64-pc-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_Canada.1252  LC_CTYPE=English_Canada.1252
[3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
[5] LC_TIME=English_Canada.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] bindata_0.9-18    e1071_1.6         class_7.3-4       mvtBinaryEP_1.0.1
[5] mvtnorm_0.9-9992

loaded via a namespace (and not attached):
[1] tools_2.15.1

Peter Ehlers



More information about the R-help mailing list