Distance-Distance Plot | R Documentation |
Distance-Distance Plot
ddplot(X, M, U, V)
X |
A list with k elements, k matrices of dimension |
M |
The mean matrix of the distribution, a numerical matrix of dimensions |
U |
The covariance matrix associated with the rows, a numerical matrix of dimensions |
V |
The covariance matrix associated with the columns, a numerical matrix of dimensions |
The distance-distance plot is produced. This is a scatter plot of the Mahalanobis distances computed using the estimated parameters from the multivariate normal and matrix normal distribution. See Pocuca et al. (2019) for more details.
A scatter plot of the Mahalanobis distances.
Michail Tsagris and Omar Alzeley.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Omar Alzeley oazeley@uqu.edu.sa.
Pocuca N., Gallaugher M. P., Clark K. M. & McNicholas P. D. (2019). Assessing and Visualizing Matrix Variate Normality. arXiv:1910.02859.
rmn, mn.mle, dmn, ddkstest
M <- as.matrix(iris[1:8, 1:4])
U <- cov( matrix( rnorm(100 * 8), ncol = 8 ) )
V <- cov( iris[1:50, 1:4] )
X <- rmn(100, M, U, V)
ddplot(X, M, U, V)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.