tstat: 1-Sample t-Test Statistic

Exercise template for computing the t-test statistic (numeric answer) from given hypothesized mean and empirical mean and variance.

Name:
tstat
Type:
Related:
Description:
Computing the 1-sample t-test statistic from randomly-drawn hypothesized mean, sample size, and empirical mean and variance.
Solution feedback:
Yes
Randomization:
Random numbers
Mathematical notation:
Yes
Verbatim R input/output:
No
Images:
No
Other supplements:
No
Template:
Raw: (1 random version)
PDF:
tstat-Rmd-pdf
tstat-Rnw-pdf
HTML:
tstat-Rmd-html
tstat-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("tstat.Rmd", mathjax = TRUE)
set.seed(403)
exams2pdf("tstat.Rmd")

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