William Anderson (1762 – December 16 1829) was a member of the U.S. House of Representatives from Pennsylvania.William Anderson was born in Accomack County Virginia in 1762. Married to Elizabeth Dixon. During the Revolutionary War he joined the Continental Army at the age of fifteen and served until the end of the war. He was a major on the staff of General Lafayette and distinguished himself at Germantown and Yorktown.