Visualization of Reading Level Frequency by Congressional Bill Stage
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Here’s a fun example of how you might use 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.
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.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.