Re: [R] Generating input population for microsimulation

2011-12-14 Thread Emma Thomas
Emma - Original Message ----- From: Emma Thomas To: Jan van der Laan ; "r-help@r-project.org" Cc: Sent: Wednesday, December 14, 2011 12:23 PM Subject: Re: [R] Generating input population for microsimulation Dear Jan, Thanks for your reply. The first solution works well for

Re: [R] Generating input population for microsimulation

2011-12-14 Thread Emma Thomas
the same thing? In any case, I will definitely take a look at the plyr package, which I'm sure will be useful in the future. Thanks again! Emma - Original Message - From: Jan van der Laan To: "r-help@r-project.org" Cc: Emma Thomas Sent: Wednesday, December 14, 2011

[R] Generating input population for microsimulation

2011-12-13 Thread Emma Thomas
Hi all, I've been struggling with some code and was wondering if you all could help. I am trying to generate a theoretical population of P people who are housed within X different units. Each unit follows the same structure- 10 people per unit, 8 of whom are junior and two of whom are senior. I