Nothing
Binom_Sim <-
function(size,p,N) {
q <- 1-p
x <- numeric(N)
for(i in 1:N){
temp <- runif(1)
j <- 0; cc <- p/(1-p); prob <- (1-p)^size; F <- prob
while(temp >= F){
prob <- cc*(size-j)*prob/(j+1); F <- F+prob; j <- j+1
}
x[i] <- j
}
return(x)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.