n = 100 x = rnorm(n) e = rnorm(n) y = 3 + 10*x + e a = 1:3 b = sum(a) k = rpois(b) fit = lm(y ~ x) plot(fit)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.