From 4c5c3821954d9aabc86ee0f1bc2599d382c94a19 Mon Sep 17 00:00:00 2001 From: sof202 Date: Fri, 25 Oct 2024 10:37:44 +0100 Subject: [PATCH 1/2] fix: use \\sim for tilde --- .../Introduction-to-Regression-with-R.Rmd | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/inst/tutorials/Introduction to Regression with R/Introduction-to-Regression-with-R.Rmd b/inst/tutorials/Introduction to Regression with R/Introduction-to-Regression-with-R.Rmd index 58f758f..9a23934 100644 --- a/inst/tutorials/Introduction to Regression with R/Introduction-to-Regression-with-R.Rmd +++ b/inst/tutorials/Introduction to Regression with R/Introduction-to-Regression-with-R.Rmd @@ -716,23 +716,23 @@ quiz(caption = "Have ago at these questions to test your knowledge.", answer("The value of the regression coefficient is less than 0."), answer("The value of the regression coefficient is not equal to 0.")), -question("For the regression model coded in R as $test_{score} ~ age$, how many regression coefficients are there?", +question("For the regression model coded in R as $test_{score} \\sim age$, how many regression coefficients are there?", answer("1"), answer("2", correct = TRUE), answer("3"), answer("4")), -question("For the regression model coded in R as $test_{score} ~ 1$, how many regression coefficients are there?", +question("For the regression model coded in R as $test_{score} \\sim 1$, how many regression coefficients are there?", answer("1", correct = TRUE), answer("2"), answer("3"), answer("4")), -question("For the full model $y ~ age + education_years$, which of these are valid null models? Select all that apply", - answer("$y ~ 1", correct = TRUE), - answer("$y ~ age + sex"), - answer("$y ~ age + status"), - answer("$y ~ education_years + age")) +question("For the full model $y \\sim age + education_years$, which of these are valid null models? Select all that apply", + answer("$y \\sim 1$", correct = TRUE), + answer("$y \\sim age + sex$"), + answer("$y \\sim age + status$"), + answer("$y \\sim education_years + age$")) ) ``` From e62d732d1a36428fe2925d1116bb68db92724ae9 Mon Sep 17 00:00:00 2001 From: sof202 Date: Fri, 25 Oct 2024 10:48:08 +0100 Subject: [PATCH 2/2] fix: escape the underscore characters Consistency with how it looks in the code --- .../Introduction-to-Regression-with-R.Rmd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inst/tutorials/Introduction to Regression with R/Introduction-to-Regression-with-R.Rmd b/inst/tutorials/Introduction to Regression with R/Introduction-to-Regression-with-R.Rmd index 9a23934..f44f024 100644 --- a/inst/tutorials/Introduction to Regression with R/Introduction-to-Regression-with-R.Rmd +++ b/inst/tutorials/Introduction to Regression with R/Introduction-to-Regression-with-R.Rmd @@ -716,23 +716,23 @@ quiz(caption = "Have ago at these questions to test your knowledge.", answer("The value of the regression coefficient is less than 0."), answer("The value of the regression coefficient is not equal to 0.")), -question("For the regression model coded in R as $test_{score} \\sim age$, how many regression coefficients are there?", +question("For the regression model coded in R as $test\\_score \\sim age$, how many regression coefficients are there?", answer("1"), answer("2", correct = TRUE), answer("3"), answer("4")), -question("For the regression model coded in R as $test_{score} \\sim 1$, how many regression coefficients are there?", +question("For the regression model coded in R as $test\\_score \\sim 1$, how many regression coefficients are there?", answer("1", correct = TRUE), answer("2"), answer("3"), answer("4")), -question("For the full model $y \\sim age + education_years$, which of these are valid null models? Select all that apply", +question("For the full model $y \\sim age + education\\_years$, which of these are valid null models? Select all that apply", answer("$y \\sim 1$", correct = TRUE), answer("$y \\sim age + sex$"), answer("$y \\sim age + status$"), - answer("$y \\sim education_years + age$")) + answer("$y \\sim education\\_years + age$")) ) ```