Package: trafo 1.0.3

Lily Medina

trafo: Estimation, Comparison and Selection of Transformations

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 <doi:10.2307/2287831>), Box-Cox, Dual (Yang 2006 <doi:10.1016/j.econlet.2006.01.011>), Glog (Durbin et al. 2002 <doi:10.1093/bioinformatics/18.suppl_1.S105>), gpower (Kelmansky et al. 2013 <doi:10.1515/sagmb-2012-0030>), Log, Log-shift opt (Feng et al. 2016 <doi:10.1002/sta4.104>), Manly, modulus (John and Draper 1980 <doi:10.2307/2986305>), Neglog (Whittaker et al. 2005 <doi:10.1111/j.1467-9876.2005.00520.x>), 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.

Authors:Lily Medina [aut, cre], Piedad Castro [aut], Ann-Kristin Kreutzmann [aut], Natalia Rojas-Perilla [aut]

trafo_1.0.3.tar.gz
trafo_1.0.3.zip(r-4.5)trafo_1.0.3.zip(r-4.4)trafo_1.0.3.zip(r-4.3)
trafo_1.0.3.tgz(r-4.4-any)trafo_1.0.3.tgz(r-4.3-any)
trafo_1.0.3.tar.gz(r-4.5-noble)trafo_1.0.3.tar.gz(r-4.4-noble)
trafo_1.0.3.tgz(r-4.4-emscripten)trafo_1.0.3.tgz(r-4.3-emscripten)
trafo.pdf |trafo.html
trafo/json (API)
NEWS

# Install 'trafo' in R:
install.packages('trafo', repos = c('https://akreutzmann.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/akreutzmann/trafo/issues

On CRAN:

18 exports 0.83 score 21 dependencies 70 scripts 170 downloads

Last updated 4 years agofrom:709b48b4ea. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 26 2024
R-4.5-winOKAug 26 2024
R-4.5-linuxOKAug 26 2024
R-4.4-winOKAug 26 2024
R-4.4-macOKAug 26 2024
R-4.3-winOKAug 26 2024
R-4.3-macOKAug 26 2024

Exports:assumptionsbickeldoksumboxcoxdiagnosticsdualgloggpowerlogshiftoptlogtrafomanlymodulusneglogreciprocalsqrtshifttrafo_backtrafo_comparetrafo_lmyeojohnson

Dependencies:clicodetoolscpp11crayonFNNgluelatticelifecyclelmtestlobstrmagrittrmomentsnortestprettyunitspryrRcpprlangstringistringrvctrszoo

The R package trafo for Transforming Linear Regression Models

Rendered fromvignette_trafo.pdf.asisusingR.rsp::asison Aug 26 2024.

Last update: 2018-09-03
Started: 2018-07-16

Readme and manuals

Help Manual

Help pageTopics
Data frame with transformed variablesas.data.frame.trafo
First check of assumptions to find suitable transformationsassumptions
Bickel-Doksum transformation for linear modelsbickeldoksum
Box-Cox transformation for linear modelsboxcox
Diagnostics for fitted modelsdiagnostics
Diagnostics for two differently transformed modelsdiagnostics.trafo_compare
Diagnostics for an untransformed and a transformed modeldiagnostics.trafo_lm
Dual transformation for linear modelsdual
Glog transformation for linear modelsglog
Gpower transformation for linear modelsgpower
Log shift opt transformation for linear modelslogshiftopt
Log transformation for linear modelslogtrafo
Manly transformation for linear modelsmanly
Modulus transformation for linear modelsmodulus
Neg log transformation for linear modelsneglog
Plots for linear models with transformed dependent variableplot.trafo_compare
Plot for regression models with untransformed and transformed dependent variableplot.trafo_lm
Prints diagnostics of two trafo objectsprint.diagnostics.trafo_compare
Prints diagnostics of an untransformed and a transformed modelprint.diagnostics.trafo_lm
Prints summary of trafo_compare objectsprint.summary.trafo_compare
Print summary trafoprint.summary.trafo_lm
Prints object of type trafoprint.trafo
Prints object of type trafo_compareprint.trafo_compare
Prints object of type trafo_lmprint.trafo_lm
Reciprocal transformation for linear modelsreciprocal
Square-root shift transformation for linear modelssqrtshift
Summary for two differently transformed modelssummary.trafo_compare
Summary for linear models with untransformed and transformed dependent variablesummary.trafo_lm
An R package supporting the selection of a suitable transformationtrafo-package trafo
Back-transforms vectors with used transformation in trafo_lmtrafo_back
Compares linear models with transformed dependent variabletrafo_compare
Fits transformed linear modelstrafo_lm
Yeo-Johnson transformation for linear modelsyeojohnson