makeData <- function(n, p){
X <- matrix(rnorm(n*p), nrow = n, ncol = p)
if(p < 10){
Y <- rbinom(n, 1, plogis(X[,1]))
}else{
Y <- rbinom(n, 1, plogis(0.25*X[,1] - 0.5*X[,10] + 0.125*X[,2]*X[,3]))
}
return(list(X = data.frame(X), Y = Y))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.