spetestnp
Nonparametric testing of parametric specifications R package
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: sciencedirect.com -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.7%) to scientific vocabulary
Repository
Nonparametric testing of parametric specifications R package
Basic Info
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
SpeTestNP
This R package performs nonparametric tests of parametric specifications. Five heteroskedasticity-robust tests are available: Bierens (1982), Zheng (1996), Escanciano (2006), Lavergne and Patilea (2008), and Lavergne and Patilea (2012). Specific bandwidth and kernel methods can be chosen along with many other options. Allows parallel computing to quickly compute p-values based on the bootstrap.
Hippolyte Boucher (Hippolyte.Boucher@outlook.com) is the author of SpeTestNP and Pascal Lavergne (lavergnetse@gmail.com) is a contributor. Both Hippolyte Boucher and Pascal Lavergne are maintainers and any question or bug should be reported to one of them.
Installation
To install SpeTestNP from CRAN simply run the following command:
install.packages("SpeTestNP")
To install SpeTestNP from Github the package devtools should be installed and the following commands should be run:
library(devtools)
install_github("HippolyteBoucher/SpeTestNP")
SpeTestNP requires the packages stats (already installed and loaded by default in Rstudio), foreach and doParallel (if parallel computing is used to derive p-values based on the bootstrap) to be installed.
Examples
library(SpeTestNP)
### Create artificial data, choose a parametric specification, and perform the test
# Example 1: The true model is linear and we estimate the model linearly
n<-500
x<-rnorm(n)
y<-x+rnorm(n)*0.7
eq<-lm(y~x+0)
# The test of Bierens (1982) is used with 300 wild bootstrap samples used
# to compute the p-value
SpeTest(eq=eq,type="icm",rejection="bootstrap",boot="wild",nboot=300)
# Example 2: The true model is nonlinear and we estimate the model linearly
n<-500
x<-rnorm(n)
y<-x^2+rnorm(n)*0.7
eq<-lm(y~x+0)
# The test of Lavergne and Patilea (2012) is used with a p-value based on the
# asymptotic distribution of the normalized test statistic under the null hypothesis
summary(SpeTest(eq=eq,type="sicm",rejection="asymptotics"))
References
H.J. Bierens (1982), "Consistent Model Specification Test", Journal of Econometrics, 20 (1), 105-134
J. C. Escanciano (2006), "A Consistent Diagnostic Test for Regression Models Using Projections", Econometric Theory, 22 (6), 1030-1051
P. Lavergne and V. Patilea (2008), "Breaking the Curse of Dimensionality in Nonparametric Testing", Journal of Econometrics, 143 (1), 103-122
P. Lavergne and V. Patilea (2012), "One for All and All for One: Regression Checks with Many Regressors", Journal of Business & Economic Statistics, 30 (1), 41-52
J.X. Zheng (1996), "A Consistent Test of Functional Form via Nonparametric Estimation Techniques", Journal of Econometrics, 75 (2), 263-289
Owner
- Name: Hippolyte Boucher
- Login: HippolyteBoucher
- Kind: user
- Company: Toulouse School of Economics
- Repositories: 4
- Profile: https://github.com/HippolyteBoucher
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- HippolyteBoucher (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 164 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: SpeTestNP
Non-Parametric Tests of Parametric Specifications
- Homepage: https://github.com/HippolyteBoucher/SpeTestNP
- Documentation: http://cran.r-project.org/web/packages/SpeTestNP/SpeTestNP.pdf
- License: GPL-2
-
Latest release: 1.1.0
published over 3 years ago
Rankings
Maintainers (1)
Dependencies
- np * imports
- foreach * suggests
- pracma * suggests