Relation between resistivity and effective mass in heavy-fermion and A15 compounds