In 1906 he worked at the Danvers State Hospital in Massachusetts and began to collaborate with Elmer Ernest Southard in the study of anaphylaxis. They induced reactions in guinea pigs with horse serum and published their findings. Travelling in Europe in summers, Gay became acquainted with Jules Bordet in Brussels who was developing a theory of immunity through serology. The analysis studies "the series of events that accompany the struggle between host and infecting organism." Gay investigated the alexin fixation reaction. In 1907 he became Instructor in pathology at Harvard Medical School, and in 1909 translated Bordet’s Studies in Immunity. In 1910 he became Professor of Pathology at University of California, Berkeley. Frederick was a faculty sponsor when biology students on campus formed a society called Beta Kappa Alpha. He also provided a typhoid serum and supervised the inoculation of students. He continued to research antibodies and antigens. In 1918 he published his book on typhoid fever, and in 1921 he became Head of the new Department of Bacteriology. In 1923 Gay became professor of Bacteriology at Columbia University; he introduced a graduate study program leading to a Ph.D. His research turned toward the reticulo endothelial system. In 1929 he returned to the Philippines to combat leprosy on the Leonard Wood Memorial Commission. He contributed to Agents of Disease and Host Resistance concerned with bacteria, fungi, protozoa, rickettsiae and viruses. He wrote, "The modern study of viruses, though largely in the hands of bacteriologists, has developed new biological, chemical, and physical approaches, and has brought us closer to an enlarged, though by no means final, interpretation of life itself." Gay retired to a farm in New Hartford, Connecticut.
"A half-century of bacteriology at Columbia", Columbia University Quarterly 31: 112–39, 203–17.
Papers on anaphylaxis, written in collaboration with Elmer Ernest Southard: The papers were published in the Journal of Medical Research which was the publishing arm of the American Association of Pathologists and Bacteriologists:
1907: "On serum anaphylaxis in the guinea pig", Journal of Medical Research 16: 143–80.
1908: "On the mechanism of serum anaphylaxis and intoxication in the guinea-pig", JMR 18: 407–31.
1908: "On recurrent anaphylaxis and repeated intoxication in guinea-pigs by means of horse serum", JMR 19:1–4.
1908: "The relative specificity of anaphylaxis", JMR 19: 5–15.
1908: "The localization of cell and tissue anaphylaxis in the guinea-pig, with observations of the cause of death in serum intoxication", JMR 19: 17–35.
1909: "Neurophysiological effects of anaphylactic intoxication", Journal of Medical Research 21: 21–40.