Carrying out a test for a population proportion