You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This repo is a simulation study of statistical properties for hypothesistests in LRTesteR. Each row is an experiment where data are generatedfrom random number generators and hypothesis test are done. The firstfive rows look like
For each simulated experiment, both the true hypothesis and the outcomeof the test are known. Multiple experiments are aggregated to calculatetype I error rates.
#> # A tibble: 30 × 4#> # Groups: test, mu [10]#> test mu variance Type_I_Error#> <chr> <dbl> <dbl> <dbl>#> 1 gaussian_mu_one_sample -4 1 0.05#> 2 gaussian_mu_one_sample -4 3 0.05#> 3 gaussian_mu_one_sample -4 5 0.05#> 4 gaussian_mu_one_sample -2 1 0.05#> 5 gaussian_mu_one_sample -2 3 0.05#> # ℹ 25 more rows
Each simulated experiment is based on a sample size of 500. Eachcombination of true hypothesis, parameter value, and test is repeated5,000 times.
Detailed statistical analysis can be found in the type I and type IIfolders. Code to run the simulation is in the R Code folder.
One Sample Type I Error Rate
Most tests have a type I error rate of 5%. Likelihood ratio tests havesimilar error rates to exact tests.
One Way Type I Error Rate
Compared to the one sample tests, type I error rates are further fromthe .05 target. The worst performing tests are within half a percentagepoint.
One Sample Type II Error Rate
All tests achieve near 0% type II error for a large enough effect size.
One Way Type II Error Rate
Similar to above, all one way tests have near 0% type II error rate forlarge effect sizes.
Confidence Interval Coverage
Most functions have a coverage rate of 95%. The worst performingconfidence intervals are within one percentage point.
About
A simulation of type I error rates, type II error rates, and coverage rates of functions in LRTesteR.