But an analysis of data from a Pew Research Center survey conducted earlier this year finds that seeing oneself as working class also has a heavy political tinge and differs by race and ethnicity.