search for: totalpop

Displaying 4 results from an estimated 4 matches for "totalpop".

2013 Mar 15
2
phyper returning zero
Hi, I am attempting to use phyper to test the significance of two overlapping lists. I keep getting a zero and wondered if that was determining non-significance of my overlap or a p-value too small to calculate? overlap = 524 lista = 2784 totalpop = 54675 listb = 1296 phyper(overlap, lista, totalpop, listb,lower.tail = FALSE, log.p=F) [1] 0 If I plug in some different values I get a p-value but since zero is actually lower is the overlap significant, or more likely have I made a mistake in using the function? phyper(10, 100, 20000, 100,low...
2025 Jan 21
3
ggplot with major and MINOR tick marks on a log scale
...4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L), levels = c("Good", "Moderate", "Unhealthy For Some", "Unhealthy", "Very Unhealthy", "Hazardous1", "Hazardous2"), class = "factor"), TotalPop = c(3751359, 35043, 4285, 11581, 26241, 17456, 18406, 3654557, 153002, 29954, 8452, 7719, 10687, 10430, 3654344, 104843, 57277, 24910, 15165, 4680, 13582, 3116416, 516504, 149029, 29640, 33468, 10862, 18882)), clas...
2025 Jan 21
1
ggplot with major and MINOR tick marks on a log scale
...1L, 2L, 3L, > 4L, 5L, 6L, 7L), levels = c("Good", "Moderate", "Unhealthy For Some", > "Unhealthy", "Very Unhealthy", "Hazardous1", "Hazardous2"), > class = "factor"), TotalPop = c(3751359, 35043, 4285, > 11581, 26241, 17456, 18406, 3654557, 153002, 29954, 8452, > 7719, 10687, 10430, 3654344, 104843, 57277, 24910, 15165, > 4680, 13582, 3116416, 516504, 149029, 29640, 33468, 10862, > 188...
2024 Dec 06
1
Sum by group
I have population data (?totpopE?) at the census tract level (?GEOID?), which are nested within Precincts (?Precinct?). Please see below my data structure. I used the code to sum population data per precinct: inters <- inters %>% group_by(Precinct) %>% mutate(TotalPop = sum(totpopE) ) However, said code produced too large sums because each census tract (?GEOID?) has multiple observations/rows. Each census tract has the same value. Is there any way I can use one value for each census tract to estimate total populations at the precinct level? It would be ap...