Learn R Programming

binsmooth (version 0.2.2)

county_bins: ACS County Income Data, 2006-2010

Description

Binned income data from 3,221 counties in the U.S. and Puerto Rico.

Usage

data("county_bins")

Arguments

Format

A data frame with 51536 observations on the following 6 variables.

fips

Number identifying the county

households

Bin counts

bin_min

Left endpoints of bins (US Dollars)

bin_max

Right endpoints of bins

county

County name

state

State name

See Also

county_true

Examples

Run this code
# NOT RUN {
data(county_bins)
data(county_true)
binedges <- county_bins$bin_max[county_bins$fips=="6083"]+0.5 # continuity correction
bincounts <- county_bins$households[county_bins$fips=="6083"]
smean <- county_true$mean_true[county_true$fips=="6083"]
plot(splinebins(binedges, bincounts, smean)$splinePDF, 0, 300000,
     n=500, main="Santa Barbara County")
plot(stepbins(binedges, bincounts, smean)$stepPDF, do.points=FALSE, col="red", add=TRUE)
# }

Run the code above in your browser using DataLab