Basically I want to do a chi square test on a file called
output9.csv
d <- read.csv('data.csv')
output9.csv
chisq.(mydata)
From the documentation of chisq.out.test
, you can utilize it to find the one outlier of your data considering that you also give the variance. By default, chisq.out.test
finds the value with the largest difference from the mean. If the parameter opposite
is set to TRUE
then the test will go ahead and find the lowest one.
library(outliers)
d <- read.csv('data.csv')
test1 <- chisq.out.test(d$Bytes, variance = var(d$Bytes))
#or for opposite
test2 <- chisq.out.test(d$Bytes, variance = var(d$Bytes), opposite = TRUE)