lm: Simple Linear Regression (with CSV Data)

Exercise template for conducting a simple linear regression based on a randomly-generated CSV file.

Name:
lm
Type:
Description:
Bivariate numeric data for download in a CSV file (comma-separated values) need to be assessed using a simple linear regression (one single-choice and one numeric item).
Solution feedback:
Yes
Randomization:
Random numbers, data file, and graphics
Mathematical notation:
No
Verbatim R input/output:
Yes
Images:
Yes
Other supplements:
regression.csv
Template:
Raw: (1 random version)
PDF:
lm-Rnw-pdf
lm-Rmd-pdf
HTML:
lm-Rnw-html
lm-Rmd-html

Demo code:

library("exams")

set.seed(1090)
exams2html("lm.Rnw")
set.seed(1090)
exams2pdf("lm.Rnw")

set.seed(1090)
exams2html("lm.Rmd")
set.seed(1090)
exams2pdf("lm.Rmd")