The results of a linear regression model (linear, semi-logarithmic, or log-log) need to be interpreted in an essay. By adding the "exstringtype" metainformation "essay|file" for this "string" question, it is specified that an open-ended answer should be entered using a text editor and additionally a file can be uploaded. This type of extended string question is currently supported in Moodle and in QTI 2.1 (OpenOlat in particular). The details of the rendering in Moodle are additionally controlled through several "exextra" metainformation tags.
Random numbers and text blocks
Verbatim R input/output:
(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.)
library("exams") set.seed(403) exams2html("essayreg.Rmd", mathjax = TRUE) set.seed(403) exams2pdf("essayreg.Rmd") set.seed(403) exams2html("essayreg.Rnw", mathjax = TRUE) set.seed(403) exams2pdf("essayreg.Rnw")