Currently I am studying QDA and am using R software to analyze my data.
The data was downloaded from the below link:
https://www.kaggle.com/uciml/pima-indians-diabetes-database
I want to check the QDA assumption i.e. the two groups are multivariate normally distributed, hence have used the below command in R.
library(MVN)
group1 <- discrim[1:500, 1:8]
result<- mardiaTest(group1, qqplot = FALSE) #To check whether our data from group1 is MND
group2 <- discrim[501:765, 1:8]
result2 <- mardiaTest(group2, qqplot= TRUE)#To check whether our data from group2 is MND
Both groups are non-normally distributed, so I want to normalize the data and have coded the below to normalize the data for the first group.
x1bar <- t(t(as.vector(sapply(as.data.frame(group1),mean))))
x1bartilda<- (x1bar - mean(x1bar))/sd(x1bar)
Similarly for group2, however mean vector X for group1 didn't give a result that is close to 0.
Can anyone help me what is the way forward please?