Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4a7bc84

Browse files
committed
decimal format
1 parent3a8b997 commit4a7bc84

File tree

11 files changed

+16
-24
lines changed

11 files changed

+16
-24
lines changed

‎README.Rmd‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ temp %>%
3333
rm(list = ls())
3434
```
3535

36-
Each simulated experiment is based on a sample size of 500. Each combination of true hypothesis, parameter value, and testare repeated 5,000 times.
36+
Each simulated experiment is based on a sample size of 500. Each combination of true hypothesis, parameter value, and testis repeated 5,000 times.
3737

3838
Detailed statistical analysis can be found in the type I and type II folders. Code to run the simulation is in the R Code folder.
3939

@@ -192,9 +192,7 @@ rm(list = ls())
192192
```
193193

194194
#One Way Type I Error Rate
195-
Compared to the one sample tests, type I error rates are further from the .05 target.
196-
197-
For the one sample tests, all 500 data points are associated with one group. The one parameter is estimated using all 500 data points. For the one way tests, there are two groups and therefore two parameters estimated. Each parameter is based on only 250 data points. The cost of less data per parameter is a type I error further from the target 5%.
195+
Compared to the one sample tests, type I error rates are further from the .05 target. The worst performing tests are within half a percentage point.
198196

199197
```{r typeOneSummary2, echo=FALSE, message=FALSE}
200198
gaussian <- readRDS("results/gaussian_type_one_one_way.rds")
@@ -472,7 +470,7 @@ rm(list = ls())
472470
```
473471

474472
#Confidence Interval Coverage
475-
In addition to error rates, confidence interval coverage rates are estimated.Most functions have a coverage rate of 95%. The worst performing confidence intervals are within one percentage point.
473+
Most functions have a coverage rate of 95%. The worst performing confidence intervals are within one percentage point.
476474

477475
```{r CISummary, echo=FALSE, message=FALSE}
478476

‎README.md‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type I error rates.
3434
#> # ℹ Use `print(n = ...)` to see more rows
3535

3636
Each simulated experiment is based on a sample size of 500. Each
37-
combination of true hypothesis, parameter value, and testare repeated
37+
combination of true hypothesis, parameter value, and testis repeated
3838
5,000 times.
3939

4040
Detailed statistical analysis can be found in the type I and type II
@@ -50,13 +50,8 @@ similar error rates to exact tests.
5050
#One Way Type I Error Rate
5151

5252
Compared to the one sample tests, type I error rates are further from
53-
the .05 target.
54-
55-
For the one sample tests, all 500 data points are associated with one
56-
group. The one parameter is estimated using all 500 data points. For the
57-
one way tests, there are two groups and therefore two parameters
58-
estimated. Each parameter is based on only 250 data points. The cost of
59-
less data per parameter is a type I error further from the target 5%.
53+
the .05 target. The worst performing tests are within half a percentage
54+
point.
6055

6156
<imgsrc="man/figures/README-typeOneSummary2-1.png"width="100%" />
6257

@@ -75,8 +70,7 @@ large effect sizes.
7570

7671
#Confidence Interval Coverage
7772

78-
In addition to error rates, confidence interval coverage rates are
79-
estimated. Most functions have a coverage rate of 95%. The worst
80-
performing confidence intervals are within one percentage point.
73+
Most functions have a coverage rate of 95%. The worst performing
74+
confidence intervals are within one percentage point.
8175

8276
<imgsrc="man/figures/README-CISummary-1.png"width="100%" />

‎type I/README.Rmd‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ temp %>%
202202
geom_text() +
203203
scale_x_continuous(breaks = seq(-4, 4, 2)) +
204204
scale_y_continuous(breaks = seq(1, 5, 2)) +
205-
scale_fill_gradient(low = "white", high = "red", limit = c(0, .10)) +
205+
scale_fill_gradient(breaks = seq(0, .10, .05),low = "white", high = "red", limit = c(0, .10)) +
206206
labs(title = "Overall Type I Error Rate", x = "mu", y = "variance", fill = "Type I Error") +
207207
facet_wrap(vars(test))
208208
@@ -246,7 +246,7 @@ temp %>%
246246
geom_text() +
247247
scale_x_continuous(breaks = seq(1, 9, 2)) +
248248
scale_y_continuous(breaks = seq(1, 9, 2)) +
249-
scale_fill_gradient(low = "white", high = "red", limits = c(0, .10)) +
249+
scale_fill_gradient(breaks = seq(0, .10, .05),low = "white", high = "red", limits = c(0, .10)) +
250250
labs(x = "Shape", y = "Rate", fill = "Type I Error") +
251251
facet_wrap(vars(test))
252252
@@ -327,7 +327,7 @@ temp %>%
327327
geom_text() +
328328
scale_x_continuous(breaks = seq(1, 9, 2)) +
329329
scale_y_continuous(breaks = seq(1, 9, 2)) +
330-
scale_fill_gradient(low = "white", high = "red", limits = c(0, .10)) +
330+
scale_fill_gradient(breaks = seq(0, .10, .05),low = "white", high = "red", limits = c(0, .10)) +
331331
labs(x = "Shape 1", y = "Shape 2", fill = "Type I Error") +
332332
facet_wrap(vars(test))
333333
@@ -452,7 +452,7 @@ temp %>%
452452
ggplot(aes(x = factor(p), y = factor(size), fill = TypeI, label = TypeI)) +
453453
geom_tile(height = .60, width = .85) +
454454
geom_text(size = 2.75) +
455-
scale_fill_gradient(low = "white", high = "red", limits = c(0, .10)) +
455+
scale_fill_gradient(breaks = seq(0, .10, .05),low = "white", high = "red", limits = c(0, .10)) +
456456
labs(x = "P", y = "Size", fill = "Type I Error") +
457457
facet_wrap(vars(test))
458458
@@ -498,7 +498,7 @@ temp %>%
498498
geom_text() +
499499
scale_x_continuous(breaks = seq(-4, 4, 2)) +
500500
scale_y_continuous(breaks = seq(1, 9, 2)) +
501-
scale_fill_gradient(low = "white", high = "red", limit = c(0, .10)) +
501+
scale_fill_gradient(breaks = seq(0, .10, .05),low = "white", high = "red", limit = c(0, .10)) +
502502
labs(title = "Overall Type I Error Rate", x = "location", y = "scale", fill = "Type I Error") +
503503
facet_wrap(vars(test))
504504
@@ -538,7 +538,7 @@ temp %>%
538538
geom_text() +
539539
scale_x_continuous(breaks = seq(1, 9, 2)) +
540540
scale_y_continuous(breaks = seq(1, 9, 2)) +
541-
scale_fill_gradient(low = "white", high = "red", limits = c(0, .10)) +
541+
scale_fill_gradient(breaks = seq(0, .10, .05),low = "white", high = "red", limits = c(0, .10)) +
542542
labs(x = "Mean", y = "Shape", fill = "Type I Error") +
543543
facet_wrap(vars(test))
544544
-759 Bytes
Loading
-97 Bytes
Loading
-781 Bytes
Loading
-134 Bytes
Loading
-737 Bytes
Loading
-798 Bytes
Loading

‎type II/README.Rmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ temp %>%
3535
rm(list = ls())
3636
```
3737

38-
Like type I calculations, each simulated experiment is based on a sample size of 500. Each combination of effect size and testare repeated 5,000 times. Where possible, exact tests are included for comparison.
38+
Like type I calculations, each simulated experiment is based on a sample size of 500. Each combination of effect size and testis repeated 5,000 times. Where possible, exact tests are included for comparison.
3939

4040
#Overall Type II Error Rate
4141
All tests achieve near 0% type II error for a large enough effect size.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp