diagnostics.trafo_lm: Diagnostics for an untransformed and a transformed model

Description Usage Arguments Value Examples

View source: R/diagnostics.trafo_mod.R

Description

Returns information about the applied transformation and selected diagnostics to check model assumptions. The return helps to compare the untransformed and the transformed model with regard to model assumptions.

Usage

1
2
## S3 method for class 'trafo_lm'
diagnostics(object, ...)

Arguments

object

an object of type trafo_lm

...

additional arguments that are not used in this method

Value

An object of class diagnostics.trafo_lm. The method print.diagnostics.trafo_lm can be used for this class.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Load data
data("cars", package = "datasets")

# Fit linear model
lm_cars <- lm(dist ~ speed, data = cars)

# Compare transformed models
BD_lm <- trafo_lm(object = lm_cars, trafo = "bickeldoksum", 
method = "skew", lambdarange = c(1e-11, 2))

# Get diagnostics
diagnostics(BD_lm)

trafo documentation built on May 2, 2019, 2:13 p.m.