Commit e5095f0 1 parent 2de3305 commit e5095f0 Copy full SHA for e5095f0
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ Note that this pipeline to calculate an observed statistic includes a call to `h
116
116
Then, juxtaposing that $t$ statistic with its associated distribution using the ` pt ` function:
117
117
118
118
``` {r}
119
- pt(observed_statistic, df = nrow(gss) - 1, lower.tail = FALSE)*2
119
+ pt(unname( observed_statistic) , df = nrow(gss) - 1, lower.tail = FALSE)*2
120
120
```
121
121
122
122
Note that the resulting $t$-statistics from these two theory-based approaches are the same.
@@ -223,7 +223,7 @@ Note that this pipeline to calculate an observed statistic includes `hypothesize
223
223
Then, juxtaposing that $t$ statistic with its associated distribution using the ` pt ` function:
224
224
225
225
``` {r}
226
- pt(observed_statistic, df = nrow(gss) - 2, lower.tail = FALSE)*2
226
+ pt(unname( observed_statistic) , df = nrow(gss) - 2, lower.tail = FALSE)*2
227
227
```
228
228
229
229
Note that the results from these two theory-based approaches are nearly the same.
You can’t perform that action at this time.
0 commit comments