Two-Sample Tests for Skewed Data
Overview
The classical two-sample t-test works well for the normally distributed data or data with large sample size. The tcfu() and tt() tests implemented in this package provide better type-I-error control with more accurate power when testing the equality of two-sample means for skewed populations having unequal variances. These tests are especially useful when the sample sizes are moderate. The tcfu() uses the Cornish-Fisher expansion to achieve a better approximation to the true percentiles. The tt() provides transformations of the Welch's t-statistic so that the sampling distribution become more symmetric. For more technical details, please refer to Zhang (2019) http://hdl.handle.net/2097/40235.
This version is the initial release of the tcftt package.
The function tcfu() implements the Cornish-Fisher based two-sample test (TCFU) and tt() implements the transformation based two-sample test (TT).
The function t_edgeworth() provides the Edgeworth expansion for cumulative density function for the Welch's t-statistic, and t_cornish_fisher() provides the Cornish-Fisher expansion for its percentiles.
The functions adjust_power() and pauc() provide power adjustment methods for simulation studies.
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Huaiyu Zhang <huaiyuzhang1988@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Huaiyu",
family = "Zhang",
role = c("aut", "cre"),
email = "huaiyuzhang1988@gmail.com"),
person(given = "Haiyan",
family = "Wang",
role = "aut"))
as necessary.- NOTE11 OK, 2 NOTENow
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 9 (1 internal)includes a package overview page
- Examples that run
- 100%7 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 44%
Downloads
Dependencies
Installing tcftt adds no packages beyond those that come with R.
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.1.0Latest2020-07-23 · current release
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-07-23
- Total releases
- 1 / 6 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.1.0
- Download size
- 8.5 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("tcftt")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.