Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 2 committers (50.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.0%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Bootstrap based goodness of fit tests
Basic Info
- Host: GitHub
- Owner: MarselScheer
- License: gpl-3.0
- Language: R
- Default Branch: develop
- Homepage: https://marselscheer.github.io/bootGOF/
- Size: 2.35 MB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 3
Created over 5 years ago
· Last pushed 10 months ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
[](https://github.com/MarselScheer/bootGOF/actions)
[](https://app.codecov.io/github/MarselScheer/bootGOF?branch=develop)
[](https://lifecycle.r-lib.org/articles/stages.html)
[](https://www.repostatus.org/#active)
[](https://cran.r-project.org/package=bootGOF)
[](https://cran.r-project.org/package=bootGOF)
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
# bootGOF
Bootstrap based goodness-of-fit tests for (linear) models.
Assume you have fitted a statistical model, e.g. classical linear
model or generalized linear model or a model that follows
$Y = m(\beta^\top X) + \epsilon$. This package allows to perform
a rigorous statistical test to check if the chosen model family is correct.
## Example
First we generate a data-set in order to apply the package.
```{r}
set.seed(1)
N <- 100
X1 <- rnorm(N)
X2 <- rnorm(N)
d <- data.frame(
y = rpois(n = N, lambda = exp(4 + X1 * 2 + X2 * 6)),
x1 = X1,
x2 = X2)
```
Note that both covariates influence the dependent variable $Y$. Taking
only one of the covariates into account obviously leads to a model family
that is not correct and the GOF-test should reveal that:
```{r}
fit <- glm(y ~ x1, data = d, family = poisson())
library(bootGOF)
mt <- GOF_model(
model = fit,
data = d,
nmb_boot_samples = 100,
simulator_type = "parametric",
y_name = "y",
Rn1_statistic = Rn1_KS$new())
mt$get_pvalue()
```
On the other hand assuming the correct model family should in general not
be rejected by the GOF-test:
```{r}
fit <- glm(y ~ x1 + x2, data = d, family = poisson())
mt <- GOF_model(
model = fit,
data = d,
nmb_boot_samples = 100,
simulator_type = "parametric",
y_name = "y",
Rn1_statistic = Rn1_KS$new())
mt$get_pvalue()
```
...
## Installation
You can install it from CRAN
```{r, eval = FALSE}
install.packages("bootGOF")
```
or github
```{r gh-installation, eval = FALSE}
devtools::install_github("MarselScheer/bootGOF")
```
## Tests
After installing the package you can execute the unit tests of the
package in your environment by calling:
```{r, eval = FALSE}
library(tinytest)
tinytest::test_package("bootGOF")
```
# sessionInfo
```{r}
sessionInfo()
```
Owner
- Name: Marsel Scheer
- Login: MarselScheer
- Kind: user
- Repositories: 18
- Profile: https://github.com/MarselScheer
GitHub Events
Total
- Release event: 2
- Delete event: 4
- Push event: 6
- Pull request event: 6
- Fork event: 1
- Create event: 6
Last Year
- Release event: 2
- Delete event: 4
- Push event: 6
- Pull request event: 6
- Fork event: 1
- Create event: 6
Committers
Last synced: over 3 years ago
All Time
- Total Commits: 91
- Total Committers: 2
- Avg Commits per committer: 45.5
- Development Distribution Score (DDS): 0.011
Top Committers
| Name | Commits | |
|---|---|---|
| Marsel Scheer | s****r@f****e | 90 |
| Gerhard Dikta | d****a@f****e | 1 |
Committer Domains (Top 20 + Academic)
fh-aachen.de: 1
freescience.de: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 14
- Average time to close issues: N/A
- Average time to close pull requests: about 1 month
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.21
- Merged pull requests: 10
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 6
- Average time to close issues: N/A
- Average time to close pull requests: 21 minutes
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- MarselScheer (14)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 220 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: bootGOF
Bootstrap Based Goodness-of-Fit Tests
- Homepage: https://github.com/MarselScheer/bootGOF
- Documentation: http://cran.r-project.org/web/packages/bootGOF/bootGOF.pdf
- License: GPL-3
-
Latest release: 0.1.1
published 11 months ago
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 31.7%
Dependent repos count: 35.5%
Average: 38.4%
Downloads: 66.2%
Maintainers (1)
Last synced:
10 months ago
Dependencies
DESCRIPTION
cran
- R6 >= 2.4.1 imports
- checkmate >= 2.0.0 imports
- MASS * suggests
- covr * suggests
- knitr * suggests
- minpack.lm * suggests
- mockery * suggests
- pkgdown * suggests
- rmarkdown * suggests
- roxygen2 * suggests
- tinytest * suggests
.github/workflows/Features.yaml
actions
- actions/checkout v5 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v5 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/Test-coverage.yaml
actions
- actions/checkout v5 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v5 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
docker/Dockerfile
docker
- rocker/tidyverse devel build