[R] simulate correlated binary, categorical and continuous variable

Greg Snow 538280 at gmail.com
Fri Mar 30 17:25:36 CEST 2012


Partly this depends on what you mean by a covariance between
categorical variables (and binary) and what is a covariance between a
categorical and a continuous variable?

On Thu, Mar 29, 2012 at 12:31 PM, Burak Aydin <burak235813 at hotmail.com> wrote:
> Hi,
> I d like to simulate 9 variables; 3 binary, 3 categorical and 3 continuous
> with a known covariance matrix.
> Using mvtnorm and later dichotimize/categorize variables is not efficient.
> Do you know any package or how to simulate mixed data?
>
> --
> View this message in context: http://r.789695.n4.nabble.com/simulate-correlated-binary-categorical-and-continuous-variable-tp4516433p4516433.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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