Nothing
response_var <- function(model, data) {
UseMethod("response_var")
}
#' @export
response_var.default <- function(model, data) {
stats::formula(model)[[2L]]
}
predictor_vars <- function(model, data) {
UseMethod("predictor_vars")
}
#' @export
predictor_vars.default <- function(model, data) {
all.vars(stats::formula(model)[[3L]])
}
response <- function(model, data) {
eval(response_var(model), as.data.frame(data))
}
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.