Description Usage Arguments Value See Also Examples
Function trafo_lm
fits linear models with transformed dependent
variable. The main return are two lm
objects where one is the
untransformed linear model and the other one the transformed linear model.
1 2 |
object |
an object of type |
trafo |
a character string. Different transformations can be used for transforming the dependent variable in a linear model: (i) "bickeldoksum", (ii) "boxcox", (iii) "dual", (iv) "glog", (v) "gpower", (vi) "log", (vii) "logshiftopt", (viii) "manly", (ix) "modulus", (x) "neglog", (xi) "reciprocal", (xii) "yeojohnson". Defaults to "boxcox". |
lambda |
either a character named "estim" if the optimal transformation parameter should be estimated or a numeric value determining a given value for the transformation parameter. Defaults to "estim". |
method |
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". |
lambdarange |
a numeric vector with two elements defining an interval
that is used for the estimation of the optimal transformation parameter.
Defaults to |
std |
logical. If |
custom_trafo |
a list. The list has two elements where the first element
is a function specifying the desired transformation and the second element is
a function specifying the corresponding standardized transformation.
Defaults to |
An object of class trafo_lm
. Methods such as
diagnostics.trafo_lm
, print.trafo_lm
,
plot.trafo_lm
and summary.trafo_lm
can
be used for this class.
bickeldoksum
, boxcox
, dual
,
glog
, gpower
, log
,
logshiftopt
, manly
, modulus
,
neglog
, sqrtshift
, yeojohnson
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.