Re: [R] how to simulate from a conditional distribution

2008-01-24 Thread Bill.Venables
day, 25 January 2008 12:01 PM To: r-help@r-project.org Subject: [R] how to simulate from a conditional distribution Dear all, I am new to R so please bear with me for the questions. If I have X ~N(0, var1), and I know Y|X ~N(0, var2). X and Y are both vectors of equal length. How do I simulate sa

[R] how to simulate from a conditional distribution

2008-01-24 Thread qq ww
Dear all, I am new to R so please bear with me for the questions. If I have x ~N(0, var1), and I know Y|X ~N(0, var2). X and Y are both vectors of equal length. How do I simulate samples for Y? [[alternative HTML version deleted]] __ R-help@r-p