From: Andrej Kveder (email@example.com)
Date: Thu 20 Feb 2003 - 04:48:38 EST
I'm running monte carlo simulations and I'm thus creating pseudo samples of
an imaginary population. Of course vars in this population are correlated.
There is no problem as far as they are purely numeric (normal or nonnormal).
I use the chol() transformation of the correlation matrix to get the things
done. Does anybody have any experience in including a dichotomous (binomial)
variable to the show? I tried it in noumerous ways using all sorts of
different starting distributions, however none seem to work... either I
don't get the wanted proportion in the final modification or I ruin the
correlation with the final transformation. I would be very glad of any
insight how to solve the problem...
I give an example using binomial distribution as a start... I also tried
skewed and nonskewed normal, and various beta distributions and none worked.
n<-1000 #sample size
Andrej Kveder, M.A.
Institute of Medical Sciences SRS SASA; Novi trg 2, SI-1000 Ljubljana,
phone: +386 1 47 06 440 fax: +386 1 42 61 493
[[alternate HTML version deleted]]
Rfirstname.lastname@example.org mailing list
This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:22 EST