Skip to content

Commit

Permalink
upload week01 assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
LPREM committed Jan 8, 2024
1 parent f277a57 commit 95339b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions materials/tutorial_01/tests_tutorial_01.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ test_1.6 <- function() {
})

test_that("p.value data frame does not contain the correct data", {
expect_equal(digest(as.integer(sum(pairwise_comparisons_df$Interact[!is.na(pairwise_comparisons_df$Interact)]) * 1e5)),"310cbeba01f215b4f3c61ec32683c70d")
expect_equal(digest(as.integer(sum(pairwise_comparisons_df$Connect[!is.na(pairwise_comparisons_df$Connect)]) * 1e5)),"db3b3ae4947a314c396bc1cf869e19a3")
expect_equal(digest(as.integer(sum(pairwise_comparisons_df$Learn[!is.na(pairwise_comparisons_df$Learn)]) * 1e5)),"89b12a37687997c49bd0a2244223caad")
expect_equal(digest(as.integer(sum(pairwise_comparisons_df$Help[!is.na(pairwise_comparisons_df$Help)]) * 1e5)),"533b84d9e3cab426fcc423c6451fc6c1")
expect_equal(digest(as.integer(sum(pairwise_comparisons_df$Interact[!is.na(pairwise_comparisons_df$Interact)]) * 1e5)),"52a09758fe74224408f3370adde49650")
expect_equal(digest(as.integer(sum(pairwise_comparisons_df$Connect[!is.na(pairwise_comparisons_df$Connect)]) * 1e5)),"e23f3b70b25aedb7b4e430ad53739836")
expect_equal(digest(as.integer(sum(pairwise_comparisons_df$Learn[!is.na(pairwise_comparisons_df$Learn)]) * 1e5)),"11e7fecf5a45ab86af9ea5081f609319")
expect_equal(digest(as.integer(sum(pairwise_comparisons_df$Help[!is.na(pairwise_comparisons_df$Help)]) * 1e5)),"4fd46b219231bc3f244c9cda8499aa45")
})

print("Success!")
Expand Down
4 changes: 2 additions & 2 deletions materials/tutorial_01/tutorial_01.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@
"editable": false,
"nbgrader": {
"cell_type": "markdown",
"checksum": "2fcde972508af5f8852856dd7a253a06",
"checksum": "de454a984c336bda59306f3c18cff039",
"grade": false,
"grade_id": "cell-b71652c72a001c12",
"locked": true,
Expand All @@ -799,7 +799,7 @@
"**Question 1.8**\n",
"<br>{points: 1}\n",
"\n",
"a) In one or two sentences, explain why a Bonferroni correction is needed to assess the significance of the pairwise test performed in **Question 1.7**.\n",
"a) In one or two sentences, explain why a Bonferroni correction is needed to assess the significance of the pairwise the test performed in **Question 1.7**.\n",
"\n",
"b) In one or two sentences, explain how to implement a Bonferroni correction in this case."
]
Expand Down

0 comments on commit 95339b0

Please sign in to comment.