Learn R Programming

flashlight (version 0.3.0)

light_check: Check flashlight

Description

Checks if an object of class flashlight or multiflashlight is consistently defined.

Usage

light_check(x)

# S3 method for default light_check(x)

# S3 method for flashlight light_check(x)

# S3 method for multiflashlight light_check(x)

Arguments

x

An object of class flashlight or multiflashlight.

Value

The input x or an error message.

Methods (by class)

  • default: Default check method not implemented yet.

  • flashlight: Checks if a flashlight object is consistently defined.

  • multiflashlight: Checks if a multiflashlight object is consistently defined.

Examples

Run this code
# NOT RUN {
fit <- lm(Sepal.Length ~ ., data = iris)
fit_log <- lm(log(Sepal.Length) ~ ., data = iris)
fl <- flashlight(fit, data = iris, y = "Sepal.Length", label = "ols")
fl_log <- flashlight(fit_log,  y = "Sepal.Length", label = "ols", linkinv = exp)
light_check(fl)
light_check(fl_log)
# }

Run the code above in your browser using DataLab