I tried the following code to generate a hist and it apparently seems to be unimodal but still this dip.test shows non-uni modal.

Please help me in this regard I am stuck

x=c(1,1,1,2,2,2,2,2,2.5,2.5,2.5)

> hist(x)

> dip.test(x)

OutPut:

Hartigans' dip test for unimodality / multimodality

data: x

D = 0.13636, p-value = 0.04419

alternative hypothesis: non-unimodal, i.e., at least bimodal

More Ahsan Raza's questions See All
Similar questions and discussions