Skip to content

Commit 96f3018

Browse files
Qmd exercises, Chp 1 only (#357)
* Fix section references * Update pipe, and some other minor things * Fix response and re-render * Re-render
1 parent aa37700 commit 96f3018

File tree

8 files changed

+200
-218
lines changed

8 files changed

+200
-218
lines changed

01-data-hello.qmd

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In this first chapter, we focus on both the properties of data and on the collec
1818
terms_chp_1 <- c("data")
1919
```
2020

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

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

148-
## Data basics {sec-data-basics}
148+
## Data basics {#sec-data-basics}
149149

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

604604
\vspace{10mm}
605605

606-
## Chapter review {chp1-review}
606+
## Chapter review {#sec-chp1-review}
607607

608608
### Summary
609609

@@ -625,7 +625,7 @@ make_terms_table(terms_chp_1)
625625

626626
\clearpage
627627

628-
## Exercises {chp1-exercises}
628+
## Exercises {#sec-chp1-exercises}
629629

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

_freeze/01-data-hello/execute-results/html.json

+2-2
Large diffs are not rendered by default.
Loading

_freeze/08-model-mlr/execute-results/html.json

+2-2
Large diffs are not rendered by default.

_freeze/11-foundations-randomization/execute-results/html.json

+2-3
Large diffs are not rendered by default.

_freeze/13-foundations-mathematical/execute-results/html.json

+2-3
Large diffs are not rendered by default.

exercises/_01-ex-data-hello.qmd

+187-203
Large diffs are not rendered by default.

exercises/_01-sa-data-hello.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
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.
1111
\addtocounter{enumi}{1}
1212

13-
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).
13+
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).
1414
\addtocounter{enumi}{1}
1515

1616
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).

0 commit comments

Comments
 (0)