response | R Documentation |
Extracts response from object of class "flashlight".
response(object, ...)
## Default S3 method:
response(object, ...)
## S3 method for class 'flashlight'
response(object, ...)
## S3 method for class 'multiflashlight'
response(object, ...)
object |
An object of class "flashlight". |
... |
Arguments used to update the flashlight before extracting the response. |
A numeric vector of responses.
response(default)
: Default method not implemented yet.
response(flashlight)
: Extract response from flashlight object.
response(multiflashlight)
: Extract responses from multiflashlight object.
fit <- lm(Sepal.Length ~ ., data = iris)
(fl <- flashlight(model = fit, data = iris, y = "Sepal.Length", label = "ols"))
response(fl)[1:5]
response(fl, data = iris[1:5, ])
response(fl, data = iris[1:5, ], linkinv = exp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.