Learn R Programming

trafo (version 1.0.1)

Estimation, Comparison and Selection of Transformations

Description

Estimation, selection and comparison of several families of transformations. The families of transformations included in the package are the following: Bickel-Doksum (Bickel and Doksum 1981 ), Box-Cox, Dual (Yang 2006 ), Glog (Durbin et al. 2002 ), gpower (Kelmansky et al. 2013 ), Log, Log-shift opt (Feng et al. 2016 ), Manly, modulus (John and Draper 1980 ), Neglog (Whittaker et al. 2005 ), Reciprocal and Yeo-Johnson. The package simplifies to compare linear models with untransformed and transformed dependent variable as well as linear models where the dependent variable is transformed with different transformations. Furthermore, the package employs maximum likelihood approaches, moments optimization and divergence minimization to estimate the optimal transformation parameter.

Copy Link

Version

Install

install.packages('trafo')

Monthly Downloads

200

Version

1.0.1

License

GPL-2

Maintainer

Ann-Kristin Kreutzmann

Last Published

November 27th, 2018

Functions in trafo (1.0.1)

diagnostics_internal

Internal diagnostic functions
neglog

Neg log transformation for linear models
boxcox

Box-Cox transformation for linear models
dual

Dual transformation for linear models
logshiftopt

Log shift opt transformation for linear models
logtrafo

Log transformation for linear models
boxcoxshift

Box-Cox shift transformation for linear models
divergence_min_KS

Divergence minimization by Kolmogorov Smirnov
get_modelt

Function that fits model with transformed dependent variable
get_transformed

Function that bundles the return of a trafo object
assumptions

First check of assumptions to find suitable transformations
bickeldoksum

Bickel-Doksum transformation for linear models
logshift

Log shift transformation for linear models
kurtosis_min

Kurtosis
divergence_min_CvM

Divergence minimization by Cramer von Mises
glog

Glog transformation for linear models
print.summary.trafo_compare

Prints summary of trafo_compare objects
plot.trafo_compare

Plots for linear models with transformed dependent variable
print.summary.trafo_lm

Print summary trafo
oneparam.lm

One parameter transformations for linear models
gpower

Gpower transformation for linear models
oneparam

One parameter transformations
print.diagnostics.trafo_compare

Prints diagnostics of two trafo objects
divergence_min_KL

Divergence minimization by Kullback-Leibler
print.diagnostics.trafo_lm

Prints diagnostics of an untransformed and a transformed model
skewness_min

Skewness minimization by Molina
sqrtshift

Square-root shift transformation for linear models
manly

Manly transformation for linear models
print.trafo

Prints object of type trafo
summary.trafo_compare

Summary for two differently transformed models
modulus

Modulus transformation for linear models
summary.trafo_lm

Summary for linear models with untransformed and transformed dependent variable
print.trafo_lm

Prints object of type trafo_lm
reciprocal

Reciprocal transformation for linear models
woparam.lm

Transformations without parameter for linear models
print.trafo_compare

Prints object of type trafo_compare
plot.trafo_lm

Plot for regression models with untransformed and transformed dependent variable
plot_trafolm

Plot for optimal transformation parameter - linear models
trafo_lm

Fits transformed linear models
yeojohnson

Yeo-Johnson transformation for linear models
woparam

Transformations without transformation parameter
trafo

An R package supporting the selection of a suitable transformation
trafo_compare

Compares linear models with transformed dependent variable
diagnostics.trafo_lm

Diagnostics for an untransformed and a transformed model
est_lm

Estimation of optimal transformation parameter - lm
diagnostics

Diagnostics for fitted models
diagnostics.trafo_compare

Diagnostics for two differently transformed models
est_lme

Box Cox Estimation - lme
estim_lm

Wrapper function for estimation methods - linear models
estim_lme

Wrapper function for estimation methods - linear mixed models
ML

Maximum Likelihood
as.data.frame.trafo

Data frame with transformed variables