f.sponsorType function

Calculate type of sponsor of a study