ttest: Interpretation of 2-Sample t Test

Exercise template for assessing the interpretation of a randomly-generated 2-sample t test (including significance and type of alternative).

Name:
ttest
Type:
Description:
Results of a 2-sample t.test() in R need to be interpreted regarding significance, type of alternative, and comparison of the underlying empirical means.
Solution feedback:
Yes
Randomization:
Random numbers, text blocks, and R output
Mathematical notation:
Yes
Verbatim R input/output:
Yes
Images:
No
Other supplements:
No
Template:
Raw: (1 random version)
PDF:
ttest-Rmd-pdf
ttest-Rnw-pdf
HTML:
ttest-Rmd-html
ttest-Rnw-html

(Note that the HTML output contains mathematical equations in MathML, rendered by MathJax using ‘mathjax = TRUE’. Instead it is also possible to use ‘converter = “pandoc-mathjax”’ so that LaTeX equations are rendered by MathJax directly.)

Demo code:

library("exams")

set.seed(403)
exams2html("ttest.Rmd", mathjax = TRUE)
set.seed(403)
exams2pdf("ttest.Rmd")

set.seed(403)
exams2html("ttest.Rnw", mathjax = TRUE)
set.seed(403)
exams2pdf("ttest.Rnw")