I thought it was appropriate when you have measurement data. But is it also appropriate when you have categorical or ratio data?

Thanks in advance!!