Learn R Programming

flashlight (version 0.8.0)

response: Response of multi/-flashlight

Description

Extracts response from object of class flashlight.

Usage

response(object, ...)

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

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

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

Value

A numeric vector of responses.

Arguments

object

An object of class flashlight.

...

Arguments used to update the flashlight before extracting the response.

Methods (by class)

  • default: Default method not implemented yet.

  • flashlight: Extract response from flashlight object.

  • multiflashlight: Extract responses from multiflashlight object.

Examples

Run this code
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