normalr v1.0.0
Monthly downloads
Normalisation of Multiple Variables in Large-Scale Datasets
The robustness of many of the statistical techniques, such as factor analysis, applied in
the social sciences rests upon the assumption of item-level normality. However, when dealing
with real data, these assumptions are often not met. The Box-Cox transformation (Box & Cox, 1964)
<http://www.jstor.org/stable/2984418> provides an optimal transformation for non-normal variables. Yet, for
large datasets of continuous variables, its application in current software programs is cumbersome
with analysts having to take several steps to normalise each variable. We present an R package
'normalr' that enables researchers to make convenient optimal transformations of multiple variables
in datasets. This R package enables users to quickly and accurately: (1) anchor all of their
variables at 1.00, (2) select the desired precision with which the optimal lambda is estimated,
(3) apply each unique exponent to its variable, (4) rescale resultant values to within their
original X1 and X(n) ranges, and (5) provide original and transformed estimates of skewness,
kurtosis, and other inferential assessments of normality.
Readme
normalr
The normalr allows you to perform normalisation on multiple variables in large-scale datasets.
Installation
normalr is available from CRAN. Install it with:
install.packages("normalr")
You can install normalr from github with:
# install.packages("devtools")
devtools::install_github("kcha193/normalr")
Examples
The following example uses normalr to normalise 11 continous variables in mtcars dataset.
library(normalr)
normaliseData(mtcars, getLambda(mtcars))
Shiny apps
The following example run a shiny appliaction uses normalr to normalise any dataset that the user input.
library(normalr)
normalrShiny()
The shiny app is also available from shinyapps.io.
Functions in normalr
| Name | Description | |
| getLambda | Get Optimal Lambda value | |
| normalise | Apply normalisation on a numeric vector using a specific Lambda value | |
| normalrShiny | Shiny application of the normalr | |
| testData | Test dataset for the paper | |
| normaliseData | Apply normalisation on a data frame using specific Lambda value | |
| No Results! | ||
Last month downloads
Details
| License | GPL |
| Encoding | UTF-8 |
| LazyData | true |
| RoxygenNote | 6.0.1 |
| URL | https://github.com/kcha193/normalr |
| BugReports | https://github.com/kcha193/normalr/issues |
| NeedsCompilation | no |
| Packaged | 2018-03-30 03:10:03 UTC; kcha193 |
| Repository | CRAN |
| Date/Publication | 2018-03-30 03:20:03 UTC |
| suggests | covr , testthat |
| imports | magrittr , MASS , parallel , purrr , rlang , shiny |
| depends | R (>= 3.3.0) |
| Contributors | Matthew Courtney |
Include our badge in your README
[](http://www.rdocumentation.org/packages/normalr)
