Dr. Stanley V. Smith, 64, an educational statistician who retired from the Department of Education last year after 22 years of federal service, died Wednesday at Arlington Hospital after a heart attack.

Dr. Smith first moved to the Washington area in 1951 to become director of research in the Arlington public school system. He held that post until he joined the U.S. Office of Education in the old Department of Health, Education and Welfare. This later became the Department of Education.

Dr. Smith's work at HEW involved the design and implementation of various research projects and statistical information systems. These included the Basic Educational Data System, which is used nationwide.

In addition to his work for the government, Dr. Smith was an adjunct professor at American University, where he taught graduate courses in statistics and education. He lived in Arlington.

A native of Buffalo, N.Y., Dr. Smith graduated from the University of Buffalo in 1942. During World War II, he was a civilian instructor with the Army Air Forces. He earned a master's degree in methematics from Cornell University in 1947 and a doctorate in educational research and statistics at Columbia University in 1954. Before moving to this area, he was the superintendent of schools in Macedon, N.Y.

Survivors include his wife, Jeanette M. Smith of Arlington; a son, Criag V., also of Arlington; a daughter, Marcia Carlyn of East Lansing, Mich., and three grandsons.

The family suggests that expressions of sympathy be in the form of contributions to Arlington Community Residences, 3136 N. 10th St., Arlington, Va., 22201.