Science Score: 10.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
-
✓Academic publication links
Links to: researchgate.net -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.0%) to scientific vocabulary
Last synced: 9 months ago
·
JSON representation
Repository
Non-Parametric Tests for the Two-Sample Problem
Basic Info
- Host: GitHub
- Owner: ihababusaif
- Language: R
- Default Branch: master
- Homepage: https://ihababusaif.github.io/tnl.Test/
- Size: 3.96 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created almost 4 years ago
· Last pushed over 2 years ago
Metadata Files
Readme
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# tnl.Test
[](https://app.codecov.io/gh/ihababusaif/tnl.Test?branch=master)
[](https://github.com/ihababusaif/tnl.Test/actions/workflows/R-CMD-check.yaml)
[](https://cran.r-project.org/package=tnl.Test)
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
The goal of tnl.Test is to provide functions to perform the hypothesis tests for the two sample problem based on order statistics and power comparisons.
## Installation
You can install the released version of tnl.Test from [CRAN](https://CRAN.R-project.org) with:
``` r
install.packages("tnl.Test")
```
Alternatively, you can install the development version on GitHub using the devtools package:
``` r
install.packages("devtools") # if you have not installed "devtools" package
devtools::install_github("ihababusaif/tnl.Test")
```
## Details
A non-parametric two-sample test is performed for testing null hypothesis ${H_0:F=G}$ against the alternative hypothesis ${H_1:F\not=G}$. The assumptions of the ${T_n^{(\ell)}}$ test are that both samples should come from a continuous distribution and the samples should have the same sample size.
Missing values are silently omitted from x and y.
Exact and simulated p-values are available for the ${T_n^{(\ell)}}$ test. If exact ="NULL" (the default) the p-value is computed based on exact distribution when the sample size is less than 11. Otherwise, p-value is computed based on a Monte Carlo simulation. If exact ="TRUE", an exact p-value is computed. If exact="FALSE", a Monte Carlo simulation is performed to compute the p-value. It is recommended to calculate the p-value by a Monte Carlo simulation (use exact="FALSE"), as it takes too long to calculate the exact p-value when the sample size is greater than 10.
The probability mass function (pmf), cumulative density function (cdf) and quantile function of ${T_n^{(\ell)}}$ are also available in this package, and the above-mentioned conditions about exact ="NULL", exact ="TRUE" and exact="FALSE" is also valid for these functions.
Exact distribution of ${T_n^{(\ell)}}$ test is also computed under Lehman alternative.
Random number generator of ${T_n^{(\ell)}}$ test statistic are provided under null hypothesis in the library.
## Examples
```tnl.test``` function performs a nonparametric test for two sample test on vectors of data.
```{r}
library(tnl.Test)
require(stats)
x=rnorm(7,2,0.5)
y=rnorm(7,0,1)
tnl.test(x,y,l=2)
```
```ptnl``` gives the distribution function of ${T_n^{(\ell)}}$ against the specified quantiles.
```{r}
library(tnl.Test)
ptnl(q=2,n=6,m=9,l=2,exact="NULL")
```
```dtnl``` gives the density of ${T_n^{(\ell)}}$ against the specified quantiles.
```{r}
library(tnl.Test)
dtnl(k=3,n=7,m=10,l=2,exact="TRUE")
```
```qtnl``` gives the quantile function of ${T_n^{(\ell)}}$ against the specified probabilities.
```{r}
library(tnl.Test)
qtnl(p=c(.1,.3,.5,.8,1),n=8,m=8,l=1,exact="NULL",trial = 100000)
```
```rtnl``` generates random values from ${T_n^{(\ell)}}$.
```{r}
library(tnl.Test)
rtnl(N=15,n=7,m=10,l=2)
```
```tnl_mean``` gives an expression for $E({T_n^{(\ell)}})$ under ${H_0:F=G}$.
```{r}
library(tnl.Test)
require(base)
tnl_mean(n.=11,m.=8, l=2)
```
```ptnl.lehmann``` gives the distribution function of ${T_n^{(\ell)}}$ under Lehmann alternatives.
```{r}
library(tnl.Test)
ptnl.lehmann(q=3, n.=7,m.=7,l = 2, gamma = 1.2)
```
```dtnl.lehmann``` gives the density of ${T_n^{(\ell)}}$ under Lehmann alternatives.
```{r}
library(tnl.Test)
dtnl.lehmann(k=3, n.= 6,m.=8,l = 2, gamma = 0.8)
```
```qtnl.lehmann``` returns a quantile function against the specified probabilities under Lehmann alternatives.
```{r}
library(tnl.Test)
qtnl.lehmann(p=.3, n.=4,m.=7, l=1, gamma=0.5)
```
```rtnl.lehmann``` generates random values from ${T_n^{(\ell)}}$ under Lehmann alternatives.
```{r}
library(tnl.Test)
rtnl.lehmann(N = 15, n. = 7,m.=10, l = 2,gamma=0.5)
```
## Corresponding Author
Department of Statistics, Faculty of Science, Selcuk University, 42250, Konya, Turkey
www.researchgate.net/profile/Ihab-Abusaif
Email:censtat@gmail.com
## References
Karakaya, K., Sert, S., Abusaif, I., Kuş, C., Ng, H. K. T., & Nagaraja, H. N. (2023). *A Class of Non-parametric Tests for the Two-Sample Problem based on Order Statistics and Power Comparisons*. Submitted paper.
Aliev, F., Özbek, L., Kaya, M. F., Kuş, C., Ng, H. K. T., & Nagaraja, H. N. (2022). *A nonparametric test for the two-sample problem based on order statistics.* Communications in Statistics-Theory and Methods, 1-25.
GitHub Events
Total
Last Year
Packages
- Total packages: 1
-
Total downloads:
- cran 90 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: tnl.Test
Non-Parametric Tests for the Two-Sample Problem
- Homepage: https://github.com/ihababusaif/tnl.Test
- Documentation: http://cran.r-project.org/web/packages/tnl.Test/tnl.Test.pdf
- License: GPL-3
-
Latest release: 0.1.0
published over 2 years ago
Rankings
Forks count: 27.8%
Dependent packages count: 28.6%
Stargazers count: 34.5%
Dependent repos count: 36.8%
Average: 42.7%
Downloads: 86.0%
Maintainers (1)
Last synced:
9 months ago
Dependencies
DESCRIPTION
cran
- partitions * imports
- plyr * imports
- covr * suggests
- knitr * suggests
- rmarkdown * suggests
- roxygen2 * suggests
- testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 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.4.1 composite
- actions/checkout v3 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.yml
actions
- actions/checkout v3 composite
- r-lib/actions/setup-r f57f1301a053485946083d7a45022b278929a78a composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite