response {flashlight} | R Documentation |
Response of multi/-flashlight
Description
Extracts response from object of class "flashlight".
Usage
response(object, ...)
## Default S3 method:
response(object, ...)
## S3 method for class 'flashlight'
response(object, ...)
## S3 method for class 'multiflashlight'
response(object, ...)
Arguments
object |
An object of class "flashlight". |
... |
Arguments used to update the flashlight before extracting the response. |
Value
A numeric vector of responses.
Methods (by class)
-
response(default)
: Default method not implemented yet. -
response(flashlight)
: Extract response from flashlight object. -
response(multiflashlight)
: Extract responses from multiflashlight object.
Examples
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)
[Package flashlight version 0.9.0 Index]