OptSig (version 1.0)

OptSig-package: OptSig

Description

OptSig

Arguments

Details

The DESCRIPTION file: OptSig OptSig The package accompanies the working paper: Kim and Choi, 2017, Choosing the Level of Significance: A Decision-theoretic Approach. It offers functions for the optimal level of significance for the test for linear restiction in a regeression model. Other basic statistical tests, including those for population mean and proportion, are also covered using the functions from the pwr package.

References

Kim and Choi, 2017, Choosing the Level of Significance: A Decision-theoretic Approach: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2652773

Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Hillsdale,NJ: Lawrence Erlbaum.

Stephane Champely (2017). pwr: Basic Functions for Power Analysis. R package version 1.2-1. https://CRAN.R-project.org/package=pwr

See Also

Leamer, E. 1978, Specification Searches: Ad Hoc Inference with Nonexperimental Data, Wiley, New York.

Kim, JH and Ji, P. 2015, Significance Testing in Empirical Finance: A Critical Review and Assessment, Journal of Empirical Finance 34, 1-14. <DOI:http://dx.doi.org/10.1016/j.jempfin.2015.08.006>

Examples

Run this code
# NOT RUN {
data(data1)
y=data1$lnoutput; x=cbind(data1$lncapital,data1$lnlabor)
# Restriction matrices to test for constant returns to scale
Rmat=matrix(c(0,1,1),nrow=1); rvec=matrix(0.94,nrow=1)
# Model Estimation and F-test
M=R.OLS(y,x,Rmat,rvec) 

# Degrees of Freedom and estimate of non-centrality parameter 
K=ncol(x)+1; T=length(y)
df1=nrow(Rmat);df2=T-K; NCP=M$ncp

# Optimal level of Significance: Under Normality
Opt.Sig(df1,df2,ncp=NCP,p=0.5,k=1, Figure=TRUE)
# }

Run the code above in your browser using DataLab