Skip to content

Commit

Permalink
little fix in pcf
Browse files Browse the repository at this point in the history
  • Loading branch information
jvillacampa committed Dec 20, 2018
1 parent fcd25f1 commit c5e863f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 2.deprivation_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ analyze_deprivation <- function(filename, yearstart, yearend, time_agg,
upci = case_when(est_pop < denominator ~ rate,
est_pop >= denominator ~
(2*numerator+1.96*1.96+1.96*sqrt(1.96*1.96+4*numerator*(1-rate/100))*pcf)
/ (2*(denominator+1.96*1.96))*100))
/ (2*(denominator+1.96*1.96))*100)) %>%
select(-pcf, -est_pop)
}

##################################################.
Expand Down

0 comments on commit c5e863f

Please sign in to comment.