essayreg: Linear Regression (Moodle Essay Question)

Exercise template for interpreting a simple regression based on randomly-generated data (with either a linear, semi-logarithmic, or log-log relationship) in form of an essay (for Moodle).

Name:
essayreg
Type:
Description:
The results of a linear regression model (linear, semi-logarithmic, or log-log) need to be interpreted in an essay. Using extra metainformation tags for this "string" question, it is rendered in Moodle into an "essay" (rather than a "shortanswer") question.
Solution feedback:
Yes
Randomization:
Random numbers and text blocks
Mathematical notation:
Yes
Verbatim R input/output:
Yes
Images:
No
Other supplements:
No
Raw: (1 random version)
PDF:
essayreg-Rnw-pdf
essayreg-Rmd-pdf
HTML:
essayreg-Rnw-html
essayreg-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("essayreg.Rnw")
set.seed(1090)
exams2pdf("essayreg.Rnw")

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