Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

potential solution to p-value discrepancy (tutorial 4.3) #265

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions 04-foundations/03-lesson/04-03-lesson.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,6 @@ The permuted dataset and the original observed statistic are available in your w
- As an alternative way to calculate the p-value, use `summarize()` and `mean()` to find the proportion of times the permuted differences in `opp_perm` (called `stat`) are less than or equal to the observed difference (called `diff_obs`).
- You can test your knowledge by trying out: `direction = "greater"`, `direction = "two_sided"`, and `direction = "less"` before submitting your answer to both `visualize()` and `get_p_value()`.

```{r summarizing_opportunity_cost-setup}
opp_perm <- read_rds("data/opp_perm2.rds")
```

```{r summarizing_opportunity_cost, exercise=TRUE}
# Visualize the statistic
opp_perm |>
Expand Down