|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "code",
|
5 |
| - "execution_count": 2, |
| 5 | + "execution_count": 1, |
6 | 6 | "id": "3bd18871-f159-4905-b82f-df059bc416a3",
|
7 | 7 | "metadata": {
|
8 | 8 | "editable": true,
|
|
81 | 81 | },
|
82 | 82 | {
|
83 | 83 | "cell_type": "code",
|
84 |
| - "execution_count": 3, |
| 84 | + "execution_count": 2, |
85 | 85 | "id": "4a078d31-2ae4-4215-affe-111c49a4059f",
|
86 | 86 | "metadata": {
|
87 | 87 | "editable": true,
|
|
92 | 92 | },
|
93 | 93 | "outputs": [
|
94 | 94 | {
|
95 |
| - "name": "stdout", |
96 |
| - "output_type": "stream", |
97 |
| - "text": [ |
98 |
| - "\n", |
99 |
| - "Call:\n", |
100 |
| - "lm(formula = CognitionB ~ VisitNum * Sex, data = cogDat)\n", |
101 |
| - "\n", |
102 |
| - "Residuals:\n", |
103 |
| - " Min 1Q Median 3Q Max \n", |
104 |
| - "-12.937 -2.827 0.218 2.982 12.064 \n", |
105 |
| - "\n", |
106 |
| - "Coefficients:\n", |
107 |
| - " Estimate Std. Error t value Pr(>|t|) \n", |
108 |
| - "(Intercept) 7.7202 0.4353 17.737 < 2e-16 ***\n", |
109 |
| - "VisitNum 0.3977 0.1196 3.325 0.000931 ***\n", |
110 |
| - "SexM 1.2563 0.6497 1.934 0.053556 . \n", |
111 |
| - "VisitNum:SexM -0.4590 0.1858 -2.471 0.013729 * \n", |
112 |
| - "---\n", |
113 |
| - "Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1\n", |
114 |
| - "\n", |
115 |
| - "Residual standard error: 4.527 on 693 degrees of freedom\n", |
116 |
| - "Multiple R-squared: 0.01617,\tAdjusted R-squared: 0.01192 \n", |
117 |
| - "F-statistic: 3.798 on 3 and 693 DF, p-value: 0.01017\n", |
118 |
| - "\n" |
119 |
| - ] |
| 95 | + "data": { |
| 96 | + "text/plain": [ |
| 97 | + "\n", |
| 98 | + "Call:\n", |
| 99 | + "lm(formula = CognitionB ~ VisitNum * Sex, data = cogDat)\n", |
| 100 | + "\n", |
| 101 | + "Residuals:\n", |
| 102 | + " Min 1Q Median 3Q Max \n", |
| 103 | + "-11.465 -3.117 0.125 2.918 14.382 \n", |
| 104 | + "\n", |
| 105 | + "Coefficients:\n", |
| 106 | + " Estimate Std. Error t value Pr(>|t|) \n", |
| 107 | + "(Intercept) 9.2834 0.5080 18.275 <2e-16 ***\n", |
| 108 | + "VisitNum -0.1923 0.1564 -1.230 0.219 \n", |
| 109 | + "SexM -0.6392 0.6616 -0.966 0.334 \n", |
| 110 | + "VisitNum:SexM -0.0136 0.1999 -0.068 0.946 \n", |
| 111 | + "---\n", |
| 112 | + "Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1\n", |
| 113 | + "\n", |
| 114 | + "Residual standard error: 4.262 on 668 degrees of freedom\n", |
| 115 | + "Multiple R-squared: 0.01283,\tAdjusted R-squared: 0.008394 \n", |
| 116 | + "F-statistic: 2.893 on 3 and 668 DF, p-value: 0.03462\n" |
| 117 | + ] |
| 118 | + }, |
| 119 | + "metadata": {}, |
| 120 | + "output_type": "display_data" |
120 | 121 | }
|
121 | 122 | ],
|
122 | 123 | "source": [
|
|
142 | 143 | },
|
143 | 144 | {
|
144 | 145 | "cell_type": "code",
|
145 |
| - "execution_count": 4, |
| 146 | + "execution_count": 3, |
146 | 147 | "id": "4fa1e36f-894a-4b4a-82d8-62a3849ff5a8",
|
147 | 148 | "metadata": {
|
148 | 149 | "editable": true,
|
|
153 | 154 | },
|
154 | 155 | "outputs": [
|
155 | 156 | {
|
156 |
| - "name": "stdout", |
157 |
| - "output_type": "stream", |
158 |
| - "text": [ |
159 |
| - "\n", |
160 |
| - "Call:\n", |
161 |
| - "lm(formula = CognitionB ~ VisitNum:Sex, data = cogDat)\n", |
162 |
| - "\n", |
163 |
| - "Residuals:\n", |
164 |
| - " Min 1Q Median 3Q Max \n", |
165 |
| - "-12.7225 -2.9448 0.2117 3.0424 11.6298 \n", |
166 |
| - "\n", |
167 |
| - "Coefficients:\n", |
168 |
| - " Estimate Std. Error t value Pr(>|t|) \n", |
169 |
| - "(Intercept) 8.28413 0.32378 25.585 < 2e-16 ***\n", |
170 |
| - "VisitNum:SexF 0.26797 0.09922 2.701 0.00709 ** \n", |
171 |
| - "VisitNum:SexM 0.11395 0.10974 1.038 0.29946 \n", |
172 |
| - "---\n", |
173 |
| - "Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1\n", |
174 |
| - "\n", |
175 |
| - "Residual standard error: 4.536 on 694 degrees of freedom\n", |
176 |
| - "Multiple R-squared: 0.01087,\tAdjusted R-squared: 0.008016 \n", |
177 |
| - "F-statistic: 3.812 on 2 and 694 DF, p-value: 0.02257\n", |
178 |
| - "\n" |
179 |
| - ] |
| 157 | + "data": { |
| 158 | + "text/plain": [ |
| 159 | + "\n", |
| 160 | + "Call:\n", |
| 161 | + "lm(formula = CognitionB ~ VisitNum:Sex, data = cogDat)\n", |
| 162 | + "\n", |
| 163 | + "Residuals:\n", |
| 164 | + " Min 1Q Median 3Q Max \n", |
| 165 | + "-11.5941 -3.1624 0.1885 2.9499 14.5579 \n", |
| 166 | + "\n", |
| 167 | + "Coefficients:\n", |
| 168 | + " Estimate Std. Error t value Pr(>|t|) \n", |
| 169 | + "(Intercept) 8.90655 0.32541 27.370 < 2e-16 ***\n", |
| 170 | + "VisitNum:SexF -0.09198 0.11687 -0.787 0.43155 \n", |
| 171 | + "VisitNum:SexM -0.27235 0.10386 -2.622 0.00894 ** \n", |
| 172 | + "---\n", |
| 173 | + "Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1\n", |
| 174 | + "\n", |
| 175 | + "Residual standard error: 4.262 on 669 degrees of freedom\n", |
| 176 | + "Multiple R-squared: 0.01145,\tAdjusted R-squared: 0.008493 \n", |
| 177 | + "F-statistic: 3.874 on 2 and 669 DF, p-value: 0.02125\n" |
| 178 | + ] |
| 179 | + }, |
| 180 | + "metadata": {}, |
| 181 | + "output_type": "display_data" |
180 | 182 | }
|
181 | 183 | ],
|
182 | 184 | "source": [
|
|
200 | 202 | },
|
201 | 203 | {
|
202 | 204 | "cell_type": "code",
|
203 |
| - "execution_count": 5, |
| 205 | + "execution_count": 4, |
204 | 206 | "id": "ca2c5012-a2c2-4e7e-ac5b-75ffcfec49ae",
|
205 | 207 | "metadata": {
|
206 | 208 | "editable": true,
|
|
211 | 213 | },
|
212 | 214 | "outputs": [
|
213 | 215 | {
|
214 |
| - "name": "stdout", |
215 |
| - "output_type": "stream", |
216 |
| - "text": [ |
217 |
| - "\n", |
218 |
| - "Call:\n", |
219 |
| - "lm(formula = CognitionB ~ Sex + VisitNum:Sex, data = cogDat)\n", |
220 |
| - "\n", |
221 |
| - "Residuals:\n", |
222 |
| - " Min 1Q Median 3Q Max \n", |
223 |
| - "-12.937 -2.827 0.218 2.982 12.064 \n", |
224 |
| - "\n", |
225 |
| - "Coefficients:\n", |
226 |
| - " Estimate Std. Error t value Pr(>|t|) \n", |
227 |
| - "(Intercept) 7.72023 0.43527 17.737 < 2e-16 ***\n", |
228 |
| - "SexM 1.25633 0.64970 1.934 0.053556 . \n", |
229 |
| - "SexF:VisitNum 0.39774 0.11962 3.325 0.000931 ***\n", |
230 |
| - "SexM:VisitNum -0.06122 0.14213 -0.431 0.666781 \n", |
231 |
| - "---\n", |
232 |
| - "Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1\n", |
233 |
| - "\n", |
234 |
| - "Residual standard error: 4.527 on 693 degrees of freedom\n", |
235 |
| - "Multiple R-squared: 0.01617,\tAdjusted R-squared: 0.01192 \n", |
236 |
| - "F-statistic: 3.798 on 3 and 693 DF, p-value: 0.01017\n", |
237 |
| - "\n" |
238 |
| - ] |
| 216 | + "data": { |
| 217 | + "text/plain": [ |
| 218 | + "\n", |
| 219 | + "Call:\n", |
| 220 | + "lm(formula = CognitionB ~ Sex + VisitNum:Sex, data = cogDat)\n", |
| 221 | + "\n", |
| 222 | + "Residuals:\n", |
| 223 | + " Min 1Q Median 3Q Max \n", |
| 224 | + "-11.465 -3.117 0.125 2.918 14.382 \n", |
| 225 | + "\n", |
| 226 | + "Coefficients:\n", |
| 227 | + " Estimate Std. Error t value Pr(>|t|) \n", |
| 228 | + "(Intercept) 9.2834 0.5080 18.275 <2e-16 ***\n", |
| 229 | + "SexM -0.6392 0.6616 -0.966 0.3343 \n", |
| 230 | + "SexF:VisitNum -0.1923 0.1564 -1.230 0.2191 \n", |
| 231 | + "SexM:VisitNum -0.2059 0.1245 -1.654 0.0987 . \n", |
| 232 | + "---\n", |
| 233 | + "Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1\n", |
| 234 | + "\n", |
| 235 | + "Residual standard error: 4.262 on 668 degrees of freedom\n", |
| 236 | + "Multiple R-squared: 0.01283,\tAdjusted R-squared: 0.008394 \n", |
| 237 | + "F-statistic: 2.893 on 3 and 668 DF, p-value: 0.03462\n" |
| 238 | + ] |
| 239 | + }, |
| 240 | + "metadata": {}, |
| 241 | + "output_type": "display_data" |
239 | 242 | }
|
240 | 243 | ],
|
241 | 244 | "source": [
|
|
0 commit comments