Ok, so exactly how do they put out those percentages for each state? I realize that there is a margin of error, but how is the data gathered and calculated in the first place?

Thanks for your help!