Skip to content

Commit 17ba5aa

Browse files
committed
added references to figures; other minor changes
1 parent 034c742 commit 17ba5aa

File tree

1 file changed

+67
-10
lines changed

1 file changed

+67
-10
lines changed

chapter11.ipynb

+67-10
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@
7575
"})"
7676
]
7777
},
78+
{
79+
"cell_type": "markdown",
80+
"metadata": {},
81+
"source": [
82+
"Figure 11.1"
83+
]
84+
},
7885
{
7986
"cell_type": "code",
8087
"execution_count": 5,
@@ -101,6 +108,13 @@
101108
"ax.set_ylabel('Y', fontsize=14);"
102109
]
103110
},
111+
{
112+
"cell_type": "markdown",
113+
"metadata": {},
114+
"source": [
115+
"Summary of Y values grouped by A"
116+
]
117+
},
104118
{
105119
"cell_type": "code",
106120
"execution_count": 6,
@@ -225,6 +239,13 @@
225239
"})"
226240
]
227241
},
242+
{
243+
"cell_type": "markdown",
244+
"metadata": {},
245+
"source": [
246+
"Figure 11.2"
247+
]
248+
},
228249
{
229250
"cell_type": "code",
230251
"execution_count": 8,
@@ -251,6 +272,13 @@
251272
"ax.set_ylabel('Y', fontsize=14);"
252273
]
253274
},
275+
{
276+
"cell_type": "markdown",
277+
"metadata": {},
278+
"source": [
279+
"Summary of Y values grouped by A"
280+
]
281+
},
254282
{
255283
"cell_type": "code",
256284
"execution_count": 9,
@@ -378,14 +406,7 @@
378406
"cell_type": "markdown",
379407
"metadata": {},
380408
"source": [
381-
"## Section 11.2"
382-
]
383-
},
384-
{
385-
"cell_type": "markdown",
386-
"metadata": {},
387-
"source": [
388-
"### Program 11.2"
409+
"\"Finally, suppose that treatment $A$ is a variable representing the dose of treatment in mg/day, and that it takes integer values from 0 to 100 mg.\""
389410
]
390411
},
391412
{
@@ -423,6 +444,13 @@
423444
"df3 = pd.DataFrame({'A': A, 'Y': Y, 'constant': np.ones(16)})"
424445
]
425446
},
447+
{
448+
"cell_type": "markdown",
449+
"metadata": {},
450+
"source": [
451+
"Figure 11.3"
452+
]
453+
},
426454
{
427455
"cell_type": "code",
428456
"execution_count": 12,
@@ -449,6 +477,20 @@
449477
"ax.set_ylabel('Y', fontsize=14);"
450478
]
451479
},
480+
{
481+
"cell_type": "markdown",
482+
"metadata": {},
483+
"source": [
484+
"## Section 11.2"
485+
]
486+
},
487+
{
488+
"cell_type": "markdown",
489+
"metadata": {},
490+
"source": [
491+
"### Program 11.2"
492+
]
493+
},
452494
{
453495
"cell_type": "markdown",
454496
"metadata": {},
@@ -525,7 +567,7 @@
525567
"cell_type": "markdown",
526568
"metadata": {},
527569
"source": [
528-
"We can also compute this with a statistics package, like Statsmodels, which will also give us confidence intervals and other values"
570+
"We can also compute this with a statistics package, like Statsmodels, which will give us confidence intervals and other values"
529571
]
530572
},
531573
{
@@ -687,6 +729,13 @@
687729
"pred.summary_frame().round(2)"
688730
]
689731
},
732+
{
733+
"cell_type": "markdown",
734+
"metadata": {},
735+
"source": [
736+
"Figure 11.4"
737+
]
738+
},
690739
{
691740
"cell_type": "code",
692741
"execution_count": 21,
@@ -885,6 +934,14 @@
885934
"summary.tables[1]"
886935
]
887936
},
937+
{
938+
"cell_type": "markdown",
939+
"metadata": {},
940+
"source": [
941+
"<br>\n",
942+
"Figure 11.5"
943+
]
944+
},
888945
{
889946
"cell_type": "code",
890947
"execution_count": 29,
@@ -1002,7 +1059,7 @@
10021059
"name": "python",
10031060
"nbconvert_exporter": "python",
10041061
"pygments_lexer": "ipython3",
1005-
"version": "3.7.5"
1062+
"version": "3.7.3"
10061063
}
10071064
},
10081065
"nbformat": 4,

0 commit comments

Comments
 (0)