<div dir="ltr"><div>I am trying to create a data.frame of acs data with 3 columns: region (for example county fips), estimate and margin.of.error. I&#39;m starting with this code:</div><div><br></div><div><div>counties = geo.make(state=&quot;*&quot;, county=&quot;*&quot;)</div><div>county_data = acs.fetch(geography=counties, table.number=&quot;B19301&quot;)</div><div>head(county_data)</div></div><div><br></div><div>I can construct the county fips code from county_data@geography</div><div><br></div><div>I can construct the estimates from estimate(county_data).</div><div><br></div><div>I am not sure how to get the margins of error. If I type &quot;head(county_data)&quot; the estimates are printed along with the margins of error. However, there does not seem to be a &quot;margin.of.error&quot; function to strip out just the margins of error:</div><div><br></div><div>&gt;head(county_data)</div><div>ACS DATA: <br></div><div><div> 2007 -- 2011 ;</div><div>  Estimates w/90% confidence intervals;</div><div>  for different intervals, see confint()</div><div>                        B19301_001    </div><div>Autauga County, Alabama 25035 +/- 916 </div><div>Baldwin County, Alabama 27217 +/- 591 </div><div>Barbour County, Alabama 15899 +/- 883 </div><div>Bibb County, Alabama    18462 +/- 1267</div><div>Blount County, Alabama  21185 +/- 862 </div><div>Bullock County, Alabama 20678 +/- 3797</div><div><br></div><div>However, there does seem to be a standard.error function which provides the  standard errors:</div></div><div><br></div><div><div>&gt; head(standard.error(county_data))</div><div>                        B19301_001</div><div>Autauga County, Alabama   556.8389</div><div>Baldwin County, Alabama   359.2705</div><div>Barbour County, Alabama   536.7781</div><div>Bibb County, Alabama      770.2128</div><div>Blount County, Alabama    524.0122</div><div>Bullock County, Alabama  2308.2067</div></div><div><br></div><div>Can someone help me understand this discrepancy?</div><div><br></div><div>Also, it would be great if someone could provide guidance about which of these metrics (margin of error vs standard deviation) is better to report along with the esimate. </div><div><br></div><div>My situation is that I have a mapping package that uses the acs package to get census data estimates as a data.frame and then maps it. I would like to improve the package by making the data.frames also have an error metric. But I&#39;m confused about whether margin of error or standard error is the best metric to include.</div><div><br></div><div><br></div></div>