essayreg2: Linear Regression (Cloze with 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.
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.
Name:
essayreg2
Type:
Related:
Description:
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).
Solution feedback:
Yes
Randomization:
Random numbers and text blocks
Mathematical notation:
No
Verbatim R input/output:
Yes
Images:
No
Other supplements:
No
Demo code:
library("exams") set.seed(403) exams2html("essayreg2.Rmd") set.seed(403) exams2pdf("essayreg2.Rmd") set.seed(403) exams2html("essayreg2.Rnw") set.seed(403) exams2pdf("essayreg2.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.