powered by
Extract the response variable from an object.
response(object, ...)# S3 method for MLModelFit response(object, newdata = NULL, ...)# S3 method for ModelFrame response(object, newdata = NULL, ...)# S3 method for ModelSpecification response(object, newdata = NULL, ...)# S3 method for recipe response(object, newdata = NULL, ...)
# S3 method for MLModelFit response(object, newdata = NULL, ...)
# S3 method for ModelFrame response(object, newdata = NULL, ...)
# S3 method for ModelSpecification response(object, newdata = NULL, ...)
# S3 method for recipe response(object, newdata = NULL, ...)
model fit, input, or specification containing predictor and response variables.
arguments passed to other methods.
data frame from which to extract the response variable values if given; otherwise, object is used.
object
# NOT RUN { ## Survival response example library(survival) mf <- ModelFrame(Surv(time, status) ~ ., data = veteran) response(mf) # }
Run the code above in your browser using DataLab