Table 2

F1 Scores for Random Forests, by Specialty and Type of Training Data

SpecialtyF1 Score, Mean (95% CI)
CombinedPrescription OnlyProcedure Only
Allergy/immunology0.9120.860a0.903a
(0.906-0.917)(0.855-0.865)(0.901-0.905)
Anesthesiology0.9510.624a0.963a
(0.950-0.952)(0.615-0.632)(0.962-0.964)
Cardiology0.9380.917a0.929a
(0.935-0.940)(0.913-0.919)(0.927-0.932)
Dermatology0.9660.940a0.964b
(0.964-0.968)(0.937-0.943)(0.963-0.965)
Emergency medicine0.8970.716a0.914a
(0.894-0.899)(0.708-0.723)(0.911-0.916)
Endocrinology0.8650.869a0.623a
(0.858-0.871)(0.863-0.875)(0.615-0.630)
Gastroenterology0.9230.901a0.900a
(0.922-0.924)(0.897-0.905)(0.897-0.903)
Hematology-oncology0.8740.8720.677a
(0.872-0.876)(0.869-0.876)(0.673-0.680)
Infectious disease0.7450.758a0.474a
(0.740-0.750)(0.754-0.763)(0.462-0.486)
Nephrology0.8850.866a0.882a
(0.882-0.887)(0.864-0.868)(0.879-0.884)
Neurology0.8850.895a0.732a
(0.883-0.887)(0.892-0.897)(0.725-0.739)
Neurosurgery0.6500.377a0.631a
(0.645-0.656)(0.364-0.389)(0.626-0.635)
Obstetrics and gynecology0.9200.928a0.868a
(0.917-0.923)(0.927-0.929)(0.865-0.870)
Ophthalmology0.9820.975a0.987a
(0.982-0.982)(0.974-0.976)(0.987-0.987)
Orthopedic surgery0.8840.760a0.901a
(0.880-0.888)(0.756-0.765)(0.900-0.903)
Otolaryngology0.9320.874a0.951a
(0.927-0.937)(0.868-0.880)(0.949-0.952)
Pathology0.9870.005a0.990a
(0.986-0.987)(0-0.012)(0.990-0.990)
Physical medicine and rehabilitation0.5860.380a0.492a
(0.583-0.589)(0.374-0.387)(0.483-0.500)
Plastic surgery0.5330.314a0.383a
(0.527-0.539)(0.287-0.341)(0.378-0.388)
Primary care0.9200.911a0.878a
(0.917-0.922)(0.910-0.912)(0.876-0.880)
Psychiatry0.9300.938a0.740a
(0.929-0.932)(0.936-0.940)(0.734-0.745)
Pulmonology0.8360.843a0.818a
(0.834-0.837)(0.839-0.848)(0.814-0.822)
Radiation oncology0.9390.691a0.976a
(0.933-0.945)(0.680-0.702)(0.975-0.977)
Radiology0.9790.275a0.984a
(0.977-0.980)(0.272-0.279)(0.983-0.985)
Rheumatology0.9160.9160.726a
(0.913-0.919)(0.913-0.918)(0.719-0.733)
Surgery0.7740.624a0.735a
(0.767-0.781)(0.614-0.634)(0.731-0.740)
Urology0.9620.950a0.962
(0.958-0.965)(0.947-0.953)(0.961-0.963)
Macro F10.8760.745a0.821a
(0.874-0.878)(0.741-0.748)(0.820-0.823)
  • Note: Prescribing data are from 2014-2016 Centers for Medicare and Medicaid Services (CMS) Medicare Fee-For-Service Provider Utilization and Payment Data: Part D Prescriber Public Use Files.19 Procedure data from 2014-2016 CMS Medicare Fee-For-Service Provider Utilization and Payment Data: Physician and Other Supplier Public Use Files.20

  • a P <.01 (paired t test vs combined).

  • b P <.05 (paired t test vs combined).