Learn R Programming

flashlight (version 0.3.0)

response: Response of flashlight

Description

Extracts response from object of class flashlight.

Usage

response(object, ...)

# S3 method for default response(object, ...)

# S3 method for flashlight 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)

  • default: Default method not implemented yet.

  • flashlight: Extract response from flashlight object.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab