The analysis of frequency data