The prognosis for an avulsed tooth is principally affected by

removal of necrotic cementum

length of time the tooth was out of the mouth

condition of the socket when the tooth was replanted

pulp extirpation