Learn R Programming

PlotNormTest

PlotNormTest provides graphical techniques to find evidence of non-normality of a multivariate dataset.

Installation

You can install the development version of PlotNormTest from GitHub with:

# install.packages("devtools")
devtools::install_github("HuongTran53/PlotNormTest")

Example

This is a basic example which shows you how to solve a common problem:

library(PlotNormTest)
set.seed(123)
x <- MASS::mvrnorm(1000, rep(0, 5), diag(5))
d3hCGF_plot(x); title("Using third derivatives of CGF")
#> [1] "accept"
d4hCGF_plot(x); title("Using fourth derivatives of CGF")
#> [1] "accept"
df <- Multi.to.Uni(x)
qqnorm(df$x.new, main = "Transfromation to nearly independent unvariate sample, Q-Q plot"); abline(0, 1)
# Maximum skewness under linear transformation
linear_transform(x, method = "skewness")$max_result
#> [1] 0.01160368

Copy Link

Version

Install

install.packages('PlotNormTest')

Monthly Downloads

167

Version

1.0.1

License

MIT + file LICENSE

Maintainer

Huong Tran

Last Published

March 25th, 2025

Functions in PlotNormTest (1.0.1)

covLtLs

Linear combinations of distinct derivatives of empirical cumulant generating function (CGF).
covZtZs

Covariance matrix of derivatives of sample moment generating function (MGF).
Univariate_Score_function

Graphical plots to assess the univarite noramality assumption of data.
Independent_transformation

Transformation to Independent Univariate Sample
mt3_rev_pos

Derivatives of empirical moment generating function (MGF).
Univariate_CGF_plot

Graphical plots to assess multivariate univarite assumption of data.
dCGF

Calculation of derivatives of empirical cumulant generating function (CGF).
dMGF

Moment generating functions (MGF) of standard normal distribution.
covTtTs

Covariance matrix of derivatives of sample cumulant generating function (CGF).
Multivariate_CGF_PLot

Graphical plots to assess multivariate normality assumption.
matrix_A

From derivatives of MGF to derivatives of CGF.
get_params

Get parameters for plots derivatives of multivariate CGF to assess normality assumption.
linear_transform

Best Linear Transformations
skewness_kurtosis

Sample skewness and Sample Kurtosis.