Skip to content

Commit

Permalink
Qmd exercises, Chp 1 only (#357)
Browse files Browse the repository at this point in the history
* Fix section references

* Update pipe, and some other minor things

* Fix response and re-render

* Re-render
  • Loading branch information
mine-cetinkaya-rundel authored Oct 30, 2023
1 parent aa37700 commit 96f3018
Show file tree
Hide file tree
Showing 8 changed files with 200 additions and 218 deletions.
8 changes: 4 additions & 4 deletions 01-data-hello.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ In this first chapter, we focus on both the properties of data and on the collec
terms_chp_1 <- c("data")
```

## Case study: Using stents to prevent strokes {sec-case-study-stents-strokes}
## Case study: Using stents to prevent strokes {#sec-case-study-stents-strokes}

In this section we introduce a classic challenge in statistics: evaluating the efficacy of a medical treatment.
Terms in this section, and indeed much of this chapter, will all be revisited later in the text.
Expand Down Expand Up @@ -145,7 +145,7 @@ This study looked at patients with very specific characteristics who volunteered
In addition, there are many types of stents, and this study only considered the self-expanding Wingspan stent (Boston Scientific).
However, this study does leave us with an important lesson: we should keep our eyes open for surprises.

## Data basics {sec-data-basics}
## Data basics {#sec-data-basics}

Effective presentation and description of data is a first step in most analyses.
This section introduces one structure for organizing data as well as some terminology that will be used throughout this book.
Expand Down Expand Up @@ -603,7 +603,7 @@ We will revisit this idea when we discuss experiments later in the book.

\vspace{10mm}

## Chapter review {chp1-review}
## Chapter review {#sec-chp1-review}

### Summary

Expand All @@ -625,7 +625,7 @@ make_terms_table(terms_chp_1)

\clearpage

## Exercises {chp1-exercises}
## Exercises {#sec-chp1-exercises}

Answers to odd-numbered exercises can be found in [Appendix -@sec-exercise-solutions-01].

Expand Down
4 changes: 2 additions & 2 deletions _freeze/01-data-hello/execute-results/html.json

Large diffs are not rendered by default.

Binary file modified _freeze/01-data-hello/figure-html/unnamed-chunk-36-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions _freeze/08-model-mlr/execute-results/html.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions _freeze/13-foundations-mathematical/execute-results/html.json

Large diffs are not rendered by default.

390 changes: 187 additions & 203 deletions exercises/_01-ex-data-hello.qmd

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion exercises/_01-sa-data-hello.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
1. \(a) Treatment: $10/43 = 0.23 \rightarrow 23\%$. (b) Control: $2/46 = 0.04 \rightarrow 4\%$. (c) A higher percentage of patients in the treatment group were pain free 24 hours after receiving acupuncture. (d) It is possible that the observed difference between the two group percentages is due to chance. (e) Explanatory: acupuncture or not. Response: if the patient was pain free or not.
\addtocounter{enumi}{1}

1. \(a) Experiment; researchers are evaluating the effect of fines on parents' behavior related to picking up their children late from daycare. (b) 10 cases: the daycare centers. (c) Number of late pickups (discrete numerical). (d) Week (numerical, discrete), group (categorical, nominal), number of late pickups (numerical discrete), and study period (categorical, ordinal).
1. \(a) Experiment; researchers are evaluating the effect of fines on parents' behavior related to picking up their children late from daycare. (b) 10 cases: the daycare centers. (c) Number of late pickups (discrete numerical). (d) Week (numerical, discrete), group (categorical, nominal), number of late pickups (numerial, discrete), and study period (categorical, ordinal).
\addtocounter{enumi}{1}

1. \(a) 344 cases (penguins) are included in the data. (b) There are 4 numerical variables in the data: bill length, bill depth, and flipper length (measured in millimeters) and body mass (measured in grams). They are all continuous. (c) There are 3 categorical variables in the data: species (Adelie, Chinstrap, Gentoo), island (Torgersen, Biscoe, and Dream), and sex (female and male).
Expand Down

0 comments on commit 96f3018

Please sign in to comment.