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 + 3 * xy

I was playing around with mvrnorm (MASS), but since I’m still a newbie to R 
and not an educated statistician and wasn’t able to solve this.

Thanks for any suggestions or hints.

Best
Tobias
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to