Re: [R] Simulating Conditional Distributions

2008-03-25 Thread Bernardo Rangel Tura
On Fri, 2008-03-21 at 22:37 -0700, Sherri Rose wrote: > Dear R-Help List, > I'm trying to simulate data from a conditional distribution, and > haven't been able to modify my existing code to do so. I searched > the archives, but didn't find any previous post that matched my > question. > >

[R] Simulating Conditional Distributions

2008-03-22 Thread Sherri Rose
Dear R-Help List, I'm trying to simulate data from a conditional distribution, and haven't been able to modify my existing code to do so. I searched the archives, but didn't find any previous post that matched my question. n=1 pop = data.frame(W1 = rbinom(n, 1, .2), W2 = runif(n, min