I am trying to remove outliers from my dataset using the mvOutliers function in MVN in R. However, upon executing the program, I get the error, could not find function "mvOutlier".
I have installed all the packages from MVN to mvoutlier. I have also imported MVN but also tried importing mvoutlier but still I am getting the same error.
I am using the following code for outlier removal
library(MVN)
M <- mvOutlier(data, method = "quan", label = TRUE)
Comb_Data=M$newData
I expect the Comb_Data to contain the outlier free dataset but all I am getting is the error:
Error in mvOutlier(dat, method = "quan", label = TRUE) : could not find function "mvOutlier"
Any help in this matter would be appreciated.