f = function(x) { alpha *x + beta } g = function(y) { y + rgamma(length(y), alpha) } main = function(n, B = 999) { replicate(B, { a = f(rnorm(n)); mean(g(a))}) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.