readiness <- function(options) {
results <- list(reason = NULL,
ready = TRUE,
report = FALSE)
if (!is.something(options$endo)) {
results$ready <- FALSE
results$report <- TRUE
results$reason <- "Please select at least one endogenous independent variable"
return(results)
}
if (!is.something(options$iv)) {
results$ready <- FALSE
results$report <- TRUE
results$reason <- "Please select at least one instrumental variable"
return(results)
}
return(results)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.