Calculate the interquartile range (IQR) of a dataset. The IQR is a measure of statistical dispersion, being equal to the difference between 75th and 25th percentiles, or between upper and lower quartiles (IQR = Q3 - Q1).