oneparam.lm: One parameter transformations for linear models

Description Usage Arguments Value

View source: R/oneparam.lm.R

Description

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.

Usage

1
2
3
## S3 method for class 'lm'
oneparam(object, trafo, lambda = "estim", method = "ml",
  lambdarange, plotit = TRUE, custom_trafo = NULL, ...)

Arguments

object

an object of type lm.

trafo

character that determines the selected transformation.

lambda

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".

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 c(-2, 2).

plotit

logical. If TRUE, a plot that illustrates the optimal transformation parameter or the given transformation parameter is returned.

custom_trafo

a list that determines a one parameter transformation and the standardized one parameter transformation.

...

other parameters that can be passed to the function.

Value

an object of class trafo.


akreutzmann/trafo documentation built on Sept. 14, 2020, 9:03 p.m.