IQR is preferred when the data are skewed or have outliers. An advantage of the standard deviation is that it uses all the observations in its computation.