tstat2: 1-Sample t-Test Statistic (Single-Choice)

August 13, 2017
By

(This article was first published on R/exams, and kindly contributed to R-bloggers)

Name:
tstat2
Type:
Related:

Description:
Computing the 1-sample t-test statistic from randomly-drawn hypothesized mean, sample size, and empirical mean and variance. The correct answer has to be selected from five choice items which have been added to the numeric version of the exercise linked above.
Solution feedback:
Yes
Randomization:
Random numbers
Mathematical notation:
Yes
Verbatim R input/output:
No
Images:
No
Other supplements:
No
Raw: (1 random version)
PDF:
tstat2-Rnw-pdf
tstat2-Rmd-pdf
HTML:
tstat2-Rnw-html
tstat2-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("tstat2.Rnw")
set.seed(1090)
exams2pdf("tstat2.Rnw")

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

To leave a comment for the author, please follow the link and comment on their blog: R/exams.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers

Sponsors

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)