Factors affecting the margin of error