Do Four Year Graduates From Mid Atlantic Colleges Earn 10% or More Than Two Year Graduates?

Conclusion

The answer to the initial question is yes: four year degree graduates do earn more than 10% than two year degree graduates. They typically earn 42% more, so if a student has a choice, a four year degree will pay for itself quickly in higher earnings.
earnings_median_2 <- median(mid_atlantic_2$earnings_med, na.rm = TRUE)
earnings_median_4 <- median(mid_atlantic_4$earnings_med, na.rm = TRUE)

# compare the earnings for 4 year graduates to 110% of 2 year graduates
if ( earnings_median_4 > 1.1 * earnings_median_2) {
  print ("Four year graduates from mid Atlantic states earn more than 10% than graudates from two year colleges.")
  
  percentage <- ((earnings_median_4 - earnings_median_2) / earnings_median_2) * 100

  sprintf("They earn %2.f%% more.", percentage)
} else {
  print ("Four year graduates from mid Atlantic states do not earn more than 10% than graudates from two year colleges.")
}
## [1] "Four year graduates from mid Atlantic states earn more than 10% than graudates from two year colleges."
## [1] "They earn 42% more."