https://github.com/mightymetrika/npboottprm

Nonparametric Bootstrap Test with Pooled Resampling

https://github.com/mightymetrika/npboottprm

Science Score: 13.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
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.7%) to scientific vocabulary

Keywords

datascience nonparametric r statistics
Last synced: 6 months ago · JSON representation

Repository

Nonparametric Bootstrap Test with Pooled Resampling

Basic Info
  • Host: GitHub
  • Owner: mightymetrika
  • License: other
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 207 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 3
Topics
datascience nonparametric r statistics
Created over 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# npboottprm




The goal of npboottprm is to provide a robust tool for conducting nonparametric bootstrap tests with pooled resampling. These tests are ideal for small sample sizes and include the independent t-test, paired t-test, and F-test. The package employs methods presented in Dwivedi, Mallawaarachchi, and Alvarado (2017). 

## Installation

You can install the released version of npboottprm from [CRAN](https://CRAN.R-project.org):

```{r eval=FALSE}
install.packages("npboottprm")
```


To install the development version of npboottprm from GitHub, use the [devtools](https://devtools.r-lib.org/) package:

```{r, eval=FALSE}
# install.packages("devtools")
devtools::install_github("mightymetrika/npboottprm")
```


## Nonparametric bootstrap t-test

The following example demonstrates how to use the nonparboot() function to conduct an independent t-test.

```{r}
library(npboottprm)

# Use the simulated data included in the package
print(data_t)

# Run the test
res_t <- nonparboot(data = data_t,
                    x = "x",
                    grp = "grp",
                    nboot = 1000,
                    test = "t",
                    conf.level = 0.95,
                    seed = 183)

# Print the results, excluding the bootstrap distributions
print(res_t[!names(res_t) %in%
              c("bootstrap.stat.dist", "bootstrap.effect.dist")])
```


## Nonparametric bootstrap paired t-test

The following example demonstrates how to use the nonparboot() function to conduct a paired t-test.

```{r}
# Use the simulated data included in the package
print(data_pt)

# Run the test
res_pt <- nonparboot(data = data_pt,
                     x = "x",
                     y = "y",
                     nboot = 1000,
                     test = "pt",
                     conf.level = 0.95,
                     seed = 166)

# Print the results, excluding the bootstrap distributions
print(res_pt[!names(res_pt) %in%
               c("bootstrap.stat.dist", "bootstrap.effect.dist")])
```


## Nonparametric bootstrap F-test

The following example demonstrates how to use the nonparboot() function to conduct an F-test.

```{r}
# Use the simulated data included in the package
print(data_f)

# Run the test
res_f <- nonparboot(data = data_f,
                    x = "x",
                    grp = "grp",
                    nboot = 1000,
                    test = "F",
                    conf.level = 0.95,
                    seed = 397)

# Print the results, excluding the bootstrap distributions
print(res_f[!names(res_f) %in%
              c("bootstrap.stat.dist", "bootstrap.effect.dist")])
```


Please note that the examples provided here use simulated data included in the package. When using this package with your own data, replace data_t, data_pt, and data_f with your own data frames, and adjust the x, y, and grp parameters as needed.

## References

Dwivedi AK, Mallawaarachchi I, Alvarado LA (2017). "Analysis of small sample size studies using nonparametric bootstrap test with pooled resampling method." Statistics in Medicine, 36 (14), 2187-2205.

Owner

  • Login: mightymetrika
  • Kind: user

GitHub Events

Total
Last Year

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 36
  • Total Committers: 2
  • Avg Commits per committer: 18.0
  • Development Distribution Score (DDS): 0.306
Past Year
  • Commits: 36
  • Committers: 2
  • Avg Commits per committer: 18.0
  • Development Distribution Score (DDS): 0.306
Top Committers
Name Email Commits
Mackson Ncube m****e@g****m 25
mightymetrika m****a@p****e 11
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 7
  • Total pull requests: 25
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 1 minute
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.14
  • Average comments per pull request: 0.0
  • Merged pull requests: 25
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 0
  • Average time to close issues: 4 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mightymetrika (7)
Pull Request Authors
  • mncube (23)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 225 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 1
  • Total versions: 6
  • Total maintainers: 1
cran.r-project.org: npboottprm

Nonparametric Bootstrap Test with Pooled Resampling

  • Versions: 6
  • Dependent Packages: 2
  • Dependent Repositories: 1
  • Downloads: 225 Last month
Rankings
Downloads: 9.5%
Dependent packages count: 18.1%
Forks count: 21.0%
Average: 21.4%
Dependent repos count: 23.8%
Stargazers count: 34.5%
Last synced: 7 months ago

Dependencies

DESCRIPTION cran