Re: [R] Generating random numbers satisfying specific regression equation

2013-05-25 Thread John Sorkin
(1) you need to examine the rnorm function, enter ?rnorm() (2) when you review the documentation produced by entering the command above, you will see that the rnorm function needs three parameter, the number of values to generate, the mean of the numbers to be generated, and the SD (standard dev

[R] Generating random numbers satisfying specific regression equation

2013-05-25 Thread Tobias Kisch
Hello everybody Sorry if such a question has already been posted somewhere, but I wasn’t able to find an answer yet. I’m trying to generate random numbers for illustration purposes. The random numbers should satisfy a multiple regression equation, for example: z = 0.3 + 0.05 * x + 1.5 * y +