![](09-review_files/figure-html/fig-pieces-01-1.png)
Chap 9 Review
\[ \newcommand{\dnorm}{\text{dnorm}} \newcommand{\pnorm}{\text{pnorm}} \newcommand{\recip}{\text{recip}} \]
![](09-review_files/figure-html/fig-pieces-01-1.png)
Exercise 1 Which of the following tilde-expressions could be used to generate the graph in Figure 1?
ifelse(x > 1, 1, x^2) ~ x
ifelse(x > 0, sin(x), x) ~ x
ifelse(abs(x) > 1, x, x^3) ~ x
ifelse(abs(x) > 1, x^3, x) ~ x
ifelse(abs(x) > 1, x, exp(x^2)) ~ x
question id: drill-Piecewise-1
![](09-review_files/figure-html/fig-pieces-02-1.png)
Exercise 2 Which of the following tilde-expressions could be used to generate the graph in Figure 2?
ifelse(x > 1, 1, x^2) ~ x
ifelse(x > 0, sin(x), x) ~ x
ifelse(abs(x) > 1, x, x^3) ~ x
ifelse(abs(x) > 1, x^3, x) ~ x
ifelse(abs(x) > 1, x, exp(x^2)) ~ x
question id: drill-Piecewise-2
![](09-review_files/figure-html/fig-pieces-03-1.png)
Exercise 3 Which of the following tilde-expressions could be used to generate the graph in Figure 3?
ifelse(x > 1, 1, x^2) ~ x
ifelse(x > 0, sin(x), x) ~ x
ifelse(abs(x) > 1, x, x^3) ~ x
ifelse(abs(x) > 1, x^3, x) ~ x
ifelse(abs(x) > 1, x, exp(x^2)) ~ x
question id: drill-Piecewise-3
![](09-review_files/figure-html/fig-pieces-04-1.png)
Exercise 4 Which of the following tilde-expressions could be used to generate the graph in Figure 4?
ifelse(x > 1, 1, x^2) ~ x
ifelse(x > 0, sin(x), x) ~ x
ifelse(abs(x) > 1, x, x^3) ~ x
ifelse(abs(x) > 1, x^3, x) ~ x
ifelse(abs(x) > 1, x, exp(x^2)) ~ x
question id: drill-Piecewise-4
![](09-review_files/figure-html/fig-pieces-05-1.png)
Exercise 5 Which of the following tilde-expressions could be used to generate the graph in Figure 5?
ifelse(x > 1, 1, x^2) ~ x
ifelse(x > 0, sin(x), x) ~ x
ifelse(abs(x) > 1, x, x^3) ~ x
ifelse(abs(x) > 1, x^3, x) ~ x
ifelse(abs(x) > 1, x, exp(x^2)) ~ x
question id: drill-Piecewise-5