# lm2: Simple Linear Regression (Cloze with Theory and Application)

Exercise template with both theory and applied questions about simple linear regression based on a randomly-generated CSV file.

**Name:**

`lm2`

**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.

**Solution feedback:**

Yes

**Randomization:**

Random numbers and data file

**Mathematical notation:**

No

**Verbatim R input/output:**

Yes

**Images:**

No

**Other supplements:**

linreg.csv

**Demo code:**

```
library("exams")
set.seed(403)
exams2html("lm2.Rmd")
set.seed(403)
exams2pdf("lm2.Rmd")
set.seed(403)
exams2html("lm2.Rnw")
set.seed(403)
exams2pdf("lm2.Rnw")
```