Re: [R] Generate bivariate binomial data

2009-04-22 Thread ONKELINX, Thierry
: Charles C. Berry [mailto:cbe...@tajo.ucsd.edu] Verzonden: vrijdag 17 april 2009 21:31 Aan: ONKELINX, Thierry CC: r-help@r-project.org Onderwerp: Re: [R] Generate bivariate binomial data On Fri, 17 Apr 2009, ONKELINX, Thierry wrote: > Dear all, > > Could someone point me to a function or alg

Re: [R] Generate bivariate binomial data

2009-04-17 Thread Charles C. Berry
On Fri, 17 Apr 2009, ONKELINX, Thierry wrote: Dear all, Could someone point me to a function or algorithm to generate random bivariate binomial data? Some details about what I'm trying to do. I have a dataset of trees who were categorised as not damaged or damaged. Each tree is measured twice

Re: [R] Generate bivariate binomial data

2009-04-17 Thread Christian Ritz
Hi Thierry, I think it should be possible to generate such correlated data using a mixed model approach: 1) Generate pairs of correlated linear predictor values using an ordinary linear mixed model setup (for example using rnorm() repeatedly) 2) Back-transform these values using the inverse l

[R] Generate bivariate binomial data

2009-04-17 Thread ONKELINX, Thierry
Dear all, Could someone point me to a function or algorithm to generate random bivariate binomial data? Some details about what I'm trying to do. I have a dataset of trees who were categorised as not damaged or damaged. Each tree is measured twice (once in two consecutive years). The trees can r