The BestTransform
R package was designed to help find a transformation
that best fits all the continuous vectors in a given dataframe. There
are many techniques that have been developed in this aim, however each
has been subject to their own strengths/weaknesses, and it is unclear on
how to decide which will work best until the data is observed. This
package will look at a range of possible transformations and return the
best one, based on the user specified metric, wich can be chosen from
Minimum skewness, Shapiro P value and Pearson P value.
You can install the most recent (devel) version of BestTransform from github with:
# install.packages("devtools")
devtools::install_github("SrinivasaSaketh/BestTransform")
Or, you can download it from CRAN with:
install.packages("BestTransform")
library(BestTransform)
#Load the dataset
data <- iris
#Transform the data
trans <- BestTransform::BestTransform(data, "Species")
#> Loading required package: lattice
#> Loading required package: ggplot2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.