Knowledge and discretion in government regulation