The function transforms the dependent variable of a linear model using the one parameter transformations. The transformation parameter can either be estimated using different estimation methods or given.
# S3 method for lm
oneparam(object, trafo, lambda = "estim", method = "ml",
lambdarange, plotit = TRUE, custom_trafo = NULL, ...)
an object of type lm.
character that determines the selected transformation.
either a character named "estim" if the optimal transformation parameter should be estimated or a numeric value determining a given transformation parameter. Defaults to "estim".
a character string. Different estimation methods can be used for the estimation of the optimal transformation parameter: (i) Maximum likelihood approach ("ml"), (ii) Skewness minimization ("skew"), (iii) Kurtosis optimization ("kurt"), (iv) Divergence minimization by Kolmogorov-Smirnov ("div.ks"), by Cramer-von-Mises ("div.cvm") or by Kullback-Leibler ("div.kl"). Defaults to "ml".
a numeric vector with two elements defining an interval
that is used for the estimation of the optimal transformation parameter.
Defaults to c(-2, 2)
.
logical. If TRUE
, a plot that illustrates the optimal
transformation parameter or the given transformation parameter is returned.
a list that determines a one parameter transformation and the standardized one parameter transformation.
other parameters that can be passed to the function.
an object of class trafo
.