You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In "Tutorial 4 - Lesson 2: Randomization test", in the subsection "What is a p-value?", under "Calculating the p-values", there is a code exercise, where you have to use the "visualize()" and "get_p_value" functions.
Unfortunately, i am not able to solve this exercise, as the console always returns me "argument is of length zero".
I was not sure whether this problem is due to my inability to solve the exercise or some other issues. Could you help me clarify, whether my coding is wrong?
Visualize and calculate the p-value for the original dataset
gender_discrimination_perm %>%
visualize(obs_stat = diff_orig, direction = "greater")
gender_discrimination_perm %>%
get_p_value(obs_stat = diff_orig, direction = "greater")
Visualize and calculate the p-value for the small dataset
gender_discrimination_small_perm %>%
visualize(obs_stat = diff_orig_small, direction = "greater")
gender_discrimination_small_perm %>%
get_p_value(obs_stat = diff_orig_small, direction = "greater")
Visualize and calculate the p-value for the big dataset
gender_discrimination_big_perm %>%
visualize(obs_stat = diff_orig_big, direction = "greater")
gender_discrimination_big_perm %>%
get_p_value(obs_stat = diff_orig_big, direction = "greater")
The text was updated successfully, but these errors were encountered:
I assume there is an issue with the "visualize()" and the "get_p_value()" functions, as also in "Tutorial 4 - Lesson 3: Errors in hypothesis testing" in the subsection "Example: opportunity cost" we have to use these functions and the console still returns me "argument is of length zero"
In "Tutorial 4 - Lesson 2: Randomization test", in the subsection "What is a p-value?", under "Calculating the p-values", there is a code exercise, where you have to use the "visualize()" and "get_p_value" functions.
Unfortunately, i am not able to solve this exercise, as the console always returns me "argument is of length zero".
I was not sure whether this problem is due to my inability to solve the exercise or some other issues. Could you help me clarify, whether my coding is wrong?
Visualize and calculate the p-value for the original dataset
gender_discrimination_perm %>%
visualize(obs_stat = diff_orig, direction = "greater")
gender_discrimination_perm %>%
get_p_value(obs_stat = diff_orig, direction = "greater")
Visualize and calculate the p-value for the small dataset
gender_discrimination_small_perm %>%
visualize(obs_stat = diff_orig_small, direction = "greater")
gender_discrimination_small_perm %>%
get_p_value(obs_stat = diff_orig_small, direction = "greater")
Visualize and calculate the p-value for the big dataset
gender_discrimination_big_perm %>%
visualize(obs_stat = diff_orig_big, direction = "greater")
gender_discrimination_big_perm %>%
get_p_value(obs_stat = diff_orig_big, direction = "greater")
The text was updated successfully, but these errors were encountered: