We introduce an R function one_two_sample() which can deal with one and two (normal) samples, Ying-Ying Zhang, Yi Wei (2012) <doi:10.2991/asshm-13.2013.29>. For one normal sample x, the function reports descriptive statistics, plot, interval estimation and test of hypothesis of x. For two normal samples x and y, the function reports descriptive statistics, plot, interval estimation and test of hypothesis of x and y, respectively. It also reports interval estimation and test of hypothesis of mu1-mu2 (the difference of the means of x and y) and sigma1^2 / sigma2^2 (the ratio of the variances of x and y), tests whether x and y are from the same population, finds the correlation coefficient of x and y if x and y have the same length.
| Version: | 1.2-0 |
| Depends: | R (≥ 3.3), methods |
| Suggests: | testthat (≥ 3.0.0) |
| Published: | 2025-09-15 |
| DOI: | 10.32614/CRAN.package.OneTwoSamples |
| Author: | Frederic Bertrand |
| Maintainer: | Frederic Bertrand <frederic.bertrand at lecnam.net> |
| BugReports: | https://github.com/fbertran/OneTwoSamples/issues |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: | https://github.com/fbertran/OneTwoSamples, https://fbertran.github.io/OneTwoSamples/ |
| NeedsCompilation: | no |
| Citation: | OneTwoSamples citation info |
| Materials: | NEWS |
| CRAN checks: | OneTwoSamples results |
| Reference manual: | OneTwoSamples.html , OneTwoSamples.pdf |
| Vignettes: |
One and Two Samples Using Only an R Function (source, R code) |
| Package source: | OneTwoSamples_1.2-0.tar.gz |
| Windows binaries: | r-devel: OneTwoSamples_1.2-0.zip, r-release: OneTwoSamples_1.2-0.zip, r-oldrel: OneTwoSamples_1.2-0.zip |
| macOS binaries: | r-release (arm64): OneTwoSamples_1.2-0.tgz, r-oldrel (arm64): OneTwoSamples_1.2-0.tgz, r-release (x86_64): OneTwoSamples_1.2-0.tgz, r-oldrel (x86_64): OneTwoSamples_1.2-0.tgz |
| Old sources: | OneTwoSamples archive |
| Reverse suggests: | BioStatR |
Please use the canonical form https://CRAN.R-project.org/package=OneTwoSamples to link to this page.