spetestnp

Nonparametric testing of parametric specifications R package

https://github.com/hippolyteboucher/spetestnp

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
Last synced: 10 months ago · JSON representation

Repository

Nonparametric testing of parametric specifications R package

Basic Info
  • Host: GitHub
  • Owner: HippolyteBoucher
  • License: gpl-2.0
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 2.03 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 8 years ago · Last pushed over 3 years ago
Metadata Files
Readme License

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

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

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 164 Last month
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 35.2%
Dependent repos count: 35.5%
Average: 43.1%
Downloads: 86.4%
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • np * imports
  • foreach * suggests
  • pracma * suggests