diagnostics.trafo_lm {trafo} | R Documentation |
Diagnostics for an untransformed and a transformed model
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
## S3 method for class 'trafo_lm'
diagnostics(object, ...)
Arguments
object |
an object of type |
... |
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
# 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)
[Package trafo version 1.0.1 Index]