lm3: Simple Linear Regression (Cloze with Theory, Application, Essay, and File Upload)

[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 with both theory and applied questions, as well as interpretation and code upload, about simple linear regression based on a randomly-generated CSV file.

Name:
lm3
Type:
Related:
Description:
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).
Solution feedback:
Yes
Randomization:
Random numbers, data file, and graphics
Mathematical notation:
No
Verbatim R input/output:
Yes
Images:
Yes
Other supplements:
linreg.csv
Template:
Raw: (1 random version)
PDF:
lm3-Rmd-pdf
lm3-Rnw-pdf
HTML:
lm3-Rmd-html
lm3-Rnw-html

Demo code:

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")
To leave a comment for the author, please follow the link and comment on their blog: R/exams.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)