tstat: 1-Sample t-Test Statistic

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-Rnw-pdf
tstat-Rmd-pdf
HTML:
tstat-Rnw-html
tstat-Rmd-html

(Note that the HTML output contains mathematical equations in MathML. It is displayed by browsers with MathML support like Firefox or Safari – but not Chrome.)

Demo code:

library("exams")

set.seed(1090)
exams2html("tstat.Rnw")
set.seed(1090)
exams2pdf("tstat.Rnw")

set.seed(1090)
exams2html("tstat.Rmd")
set.seed(1090)
exams2pdf("tstat.Rmd")

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)