Visualization of Reading Level Frequency by Congressional Bill Stage
style="text-align: justify;"> Here’s a fun example of how you might use
title="Updates to data and statistics on Congressional bill complexity" href="http://www.michaelbommarito.com/blog/2012/04/14/updates-to-data-and-statistics-on-congressional-bill-complexity/">my data on Congressional bill length and complexity. Imagine you want to understand the empirical distribution of Flesch-Kincaid reading level for Congressional bills and how this distribution is related to bill stage. A first step might be to visualize this relationship.
class="aligncenter wp-image-636" title="Reading Level, Bill Stage" src="http://www.michaelbommarito.com/blog/wp-content/uploads/2012/04/reading_level_bill_stage_20120415.jpg" alt="" width="700" />
style="text-align: justify;"> Based on this visualization, you might infer that engrossed bills tend to have less right-skew and have a lower mean reading level. The story behind this might be that Senators and Representatives are less likely to accept legislation they do not understand. To test this, you might run a simple KS test to see if the introduced bill reading levels are greater than engrossed bill reading levels.
> ks.test(introduced, engrossed, alternative="less")
Two-sample Kolmogorov-Smirnov test
data: introduced and engrossed
D^- = 0.094, p-value = 0.006299
alternative hypothesis: the CDF of x lies below that of y
Sample source below.
offers daily e-mail updates
news and tutorials
on topics such as: visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook