diagnostics.trafo_compare function

Diagnostics for two differently transformed models

Diagnostics for two differently transformed models

Returns information about the applied transformations and selected diagnostics to check model assumptions. Two models are compared where the dependent variable is transformed by different transformations.

## S3 method for class 'trafo_compare' diagnostics(object, ...)

Arguments

  • object: an object of type trafo_compare
  • ...: additional arguments that are not used in this method

Returns

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

Examples

# Load data data("cars", package = "datasets") # Fit linear model lm_cars <- lm(dist ~ speed, data = cars) # Transform with Bickel-Doksum transformation bd_trafo <- bickeldoksum(object = lm_cars, plotit = FALSE) # Transform with Box-Cox transformation bc_trafo <- boxcox(object = lm_cars, method = "skew", plotit = FALSE) # Compare transformed models compare <- trafo_compare(object = lm_cars, trafos = list(bd_trafo, bc_trafo)) # Get diagnostics diagnostics(compare)
  • Maintainer: Ann-Kristin Kreutzmann
  • License: GPL-2
  • Last published: 2018-11-27

Useful links