createData = function(variable, data){
return(c(
rep(NA, variable$Nmissing),
stats::rbinom(
n = variable$N,
size = 1,
prob = createPredProb(variable = variable, data = data)
)
))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.