alteregoism

al·ter·e·go·ism

(awl'ter-ē'gō-izm),
Identification with people of similar personality to one's own.

alteregoism

[ôl′tərē′gō·iz′əm]
an altruistic feeling for an individual who is similar to or in a similar situation as oneself.