Learn R Programming

⚠️There's a newer version (2.2) of this package.Take me there.

OptSig (version 2.1)

Optimal Level of Significance for Regression and Other Statistical Tests

Description

Calculates the optimal level of significance based on a decision-theoretic approach. The optimal level is chosen so that the expected loss from hypothesis testing is minimized. A range of statistical tests are covered, including the test for the population mean, population proportion, and a linear restriction in a multiple regression model. The details are covered in Kim, Jae H. and Choi, In, 2020, Choosing the Level of Significance: A Decision-Theoretic Approach, Abacus. See also Kim, Jae H., 2020, Decision-theoretic hypothesis testing: A primer with R package OptSig, The American Statistician.

Copy Link

Version

Install

install.packages('OptSig')

Monthly Downloads

178

Version

2.1

License

GPL-2

Maintainer

Jae H Kim

Last Published

April 18th, 2020

Functions in OptSig (2.1)

OptSig.2p

Optimal significance level calculation for the test for two proportions (same sample sizes)
OptSig.BootWeight

Weighted Optimal Significance Level for the F-test based on the bootstrap
OptSig.Chisq

Optimal Significance Level for a Chi-square test
OptSig.r

Optimal significance level calculation for correlation test
OptSig.Weight

Weighted Optimal Significance Level for the F-test based on the assumption of normality in the error term
OptSig.anova

Optimal significance level calculation for balanced one-way analysis of variance tests
Power.Chisq

Function to calculate the power of a Chi-square test
R.OLS

Restricted OLS estimation and F-test
Power.F

Function to calculate the power of an F-test
OptSig-package

OptSig
data1

Data for the U.S. production function estimation
OptSig.F

Optimal Significance Level for an F-test
OptSig.p

Optimal significance level calculation for proportion tests (one sample)
OptSig.Boot

Optimal Significance Level for the F-test using the bootstrap
OptSig.2p2n

Optimal significance level calculation for the test for two proportions (different sample sizes)
OptSig.t2n

Optimal significance level calculation for two samples (different sizes) t-tests of means
Opt.sig.norm.test

Optimal significance level calculation for the mean of a normal distribution (known variance)
Opt.sig.t.test

Optimal significance level calculation for t-tests of means (one sample, two samples and paired samples)