Skip to content

Commit

Permalink
Address negative difference, closes #142
Browse files Browse the repository at this point in the history
  • Loading branch information
mine-cetinkaya-rundel committed Sep 4, 2022
1 parent 608604b commit b376761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 04-foundations/02-lesson/04-02-lesson.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,8 @@ diff_orig <- gender_discrimination %>%
diff_orig
```

Note that the difference is negative here due to the order of subtraction in the `diff()` function. It gives us `female - male`, though we have been working with `male - female` so far. Since the hypothesis test we're doing is two-sided, we won't worry about the negative sign -- we're interested in differences in both directions anyway.

###

(1) Create a data frame of permuted differences in promotion rates.
Expand Down

0 comments on commit b376761

Please sign in to comment.