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

Tutorial 4.2 - calculating the p-values #260

Open
fernando-pierucci-alves opened this issue Aug 10, 2024 · 0 comments
Open

Tutorial 4.2 - calculating the p-values #260

fernando-pierucci-alves opened this issue Aug 10, 2024 · 0 comments

Comments

@fernando-pierucci-alves

Contact Details

No response

Bug

The code online outputs p-value ~ 0.996. Latest Rstudio release (linux) produces similar output.
This may originate from 'orig_diff' calculated as minus 0.292, as indicated at:
#142
However, a change to force 'orig_diff' = .292 did not change output to expected ~0.03 (in Rstudio). This begs addressing because it's fundamental.

Reproducible Example

Transcribing the code:

gender_discrimination_perm |>
get_p_value(obs_stat = diff_orig, direction = "greater")

Expected Behavior

Transcript of tut. text: "You may have noticed that the observed statistic is borderline “significant” (p-value = 0.03) for the original data."

Session Info

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant