Formulation of a mathematical model to investigate the demand for residents by hospitals. A study of published data of 99 departments of ophthalmology yielded information about the educational function of a hospital and that of a nonprofit instituti...