Skip to content

Commit

Permalink
added comments for Morgantown, WV exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ran-codes committed Nov 17, 2021
1 parent 95fbc16 commit 4dcba46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Analysis_edits.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ summary_absolute<-absolute_ineq_long %>%

income_ineq<-dta %>% group_by(cbsa) %>%
group_modify(~{
#.x<-dta %>% filter(cbsa==25940)
# .x<-dta %>% filter(cbsa==34060)
# .x<-.x %>%
# mutate(decile_income=as.numeric(cut(mhi, breaks=quantile(mhi, probs=seq(0, 1, by=0.1)), include.lowest = T)))
# .x %>% group_by(decile_income) %>%
# summarise(le=weighted.mean(le, w=pop)) %>%
# filter(decile_income%in%c(1, 10))
.x<-.x %>%
mutate(decile_income=as.numeric(cut(mhi, breaks=quantile(mhi, probs=seq(0, 1, by=0.1)), include.lowest = T)))
decile_le<-.x %>% group_by(decile_income) %>%
Expand Down

0 comments on commit 4dcba46

Please sign in to comment.