I'm reading through the PDF "Understanding and Using American Community Survey Data - What State and Local Government Users Need to Know" and need help recreating the calculation for the median salary in *Case Study #1 *as shown in Figure 3.8 on page 12, where the data used from the ACS 5-year estimates is population estimates for 12-month male earnings.

In the example, this PUMS documentation is referenced, where on page 17, the following formula is given for the standard error of a 50 percent proportion. From the CSV of design factors, I chose 1.3 (the corresponding row is: *2019,5-Year,Minnesota,'27',POPULATION,Person Earnings/Income, 1.3*).

I am not sure I'm calculating the B variable correctly. The PUMS documentation defines it is as "Denominator of Estimated Percentage" and "the weighted total" of the frequency distribution, which I calculate as 575226 (corresponding to the example shown in the handbook, I calculated the sum of the cumulative frequencies for male earnings associated with "Rural" RUCA codes). However, the standard error I calculate is 0.3736, whereas in the handbook the values is 0.599.

I have two questions:

1) Did I choose the correct design factor?

2) What is the correct way to calculate B?

Hopefully the screenshot below is showing. If not, the formula is: SE(50 percent) = Design Factor x sqrt(95/5B x 50^2)