I am trying to classify if each class in the Iris dataset is multivariate normal or not. I am using the MVN package in R and have generate the following:
library(MVN)
attach(iris)
Mar<-MVN::mvn(data=iris,subset="Species", mvnTest="mardia")
Mar$multivariateNormality
How can I get the output in a readable table in R?
Your question isn't entirely clear, but if I understood you correctly, this line of code might work.
table <- rbind(Mar$multivariateNormality$setosa[1:2, ],Mar$multivariateNormality$versicolor[1:2, ],Mar$multivariateNormality$virginica[1:2, ])
Is this what you meant by "getting the output in a readable table?" Obs: I'll edit or delete my answer if that's not what you're trying to do.