All clinical mastitis cases during the dry period and to the end of the subsequent lactation were recorded by farm staff ; factors affecting risk of clinical mastitis were then analysed using a Cox proportional hazards model .