A general distribution theory for a class of likelihood criteria.