Open swest235 opened 9 months ago
@swest235
In the "short version" you are analyzing both injuries and fatalities, but in the "long version" your analyzing only injuries.
In the short version: mutate(harm_acc = Totalinjuries > 0 | Totalfatalities > 0) %>%
In the long version: select(day, Totalinjuries) %>%
If we remove Totalfatalities from the short version you will have the same numbers.
@JasonSills ok, that makes more sense. Does counting total injuries and total fatalities double count fatalities? I was under the impression that total injuries included fatalities, is that not the case?
@swest235
The data dictionary states that total injuries are non-fatal injuries.
@JasonSills I'm answering Q5 and I used code in 2 different ways. A short and long way. But they don't add up and I am not sure why. Can I please get some help pinpointing my mistake?
Here is my code:
5. Differences in Accidents
Question: Are there differences in the proportion of accidents that result in harm each day of the week?
Answer: Significantly more accidents occur Thursdays.
RESULTS: