lm3: Simple Linear Regression (Cloze with Theory, Application, Essay, and File Upload)
Cloze with theory and applied questions about linear regression. The theory part uses knowledge questions in "string" and "mchoice" format. The applied part is based on bivariate numeric data for download in a CSV file (comma-separated values) and uses two "num" and one "schoice" item. Additionally, for interpretation, there is an open-ended "essay" element and a "file" upload for the R script used by the participants. This type of extended cloze question is currently supported in QTI 2.1 (OpenOlat in particular).
Random numbers, data file, and graphics
Verbatim R input/output:
library("exams") set.seed(403) exams2html("lm3.Rmd") set.seed(403) exams2pdf("lm3.Rmd") set.seed(403) exams2html("lm3.Rnw") set.seed(403) exams2pdf("lm3.Rnw")