[This article was first published on R/exams
, and kindly contributed to R-bloggers
]. (You can report issue about the content on this page here
Want to share your content on R-bloggers? click here
if you have a blog, or here
if you don't.
Exercise template for interpreting a regression with two explanatory variables based on randomly-generated data (with either a linear, semi-logarithmic, or log-log relationship) in form of a cloze including essay and file upload.
The results of a linear regression model (linear, semi-logarithmic, or log-log) need to be obtained and interpreted in a “cloze” question. This comprises two “num” elements (R-squared and F-statistic), an open-ended “essay” element for interpreting the model output, and a “file” upload for the R script used by the participants. This type of extended string question is currently supported in QTI 2.1 (OpenOlat in particular).
Random numbers and text blocks
Verbatim R input/output: