essayreg: Linear Regression (Moodle Essay Question)
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
(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")