Testing in Conditional Likelihood Context
Overview
An implementation of hypothesis testing in an extended Rasch modeling framework, including sample size planning procedures and power computations. Provides 4 statistical tests, i.e., gradient test (GR), likelihood ratio test (LR), Rao score or Lagrange multiplier test (RS), and Wald test, for testing a number of hypotheses referring to the Rasch model (RM), linear logistic test model (LLTM), rating scale model (RSM), and partial credit model (PCM). Three types of functions for power and sample size computations are provided. Firstly, functions to compute the sample size given a user-specified (predetermined) deviation from the hypothesis to be tested, the level alpha, and the power of the test. Secondly, functions to evaluate the power of the tests given a user-specified (predetermined) deviation from the hypothesis to be tested, the level alpha of the test, and the sample size. Thirdly, functions to evaluate the so-called post hoc power of the tests. This is the power of the tests given the observed deviation of the data from the hypothesis to be tested and a user-specified level alpha of the test. Power and sample size computations are based on a Monte Carlo simulation approach. It is computationally very efficient. The variance of the random error in computing power and sample size arising from the simulation approach is analytically derived by using the delta method. Additionally, functions to compute the power of the tests as a function of an effect measure interpreted as explained variance are provided. Draxler, C., & Alexandrowicz, R. W. (2015), doi:10.1007/s11336-015-9472-y.
- mix_mod() added: fits a mixed model considering multiple covariates.
- Power calculation and power curve functions added for statistical analysis and visualization.
- Backtick issues in sample_size_planning outputs fixed for improved readability.
- Function arguments and return values harmonized across the package for consistency and ease of use.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 19
- Examples that run
- 0%19 never run
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 95%
Downloads
Dependencies
Installing tcl adds 24 packages (15 with compiled code, 13 MB of source tarballs). Heaviest: colorspace 2.0 MB, GPArotation 1.6 MB, psych 1.1 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.0.1Latest2025-10-06 · current release · diff ↗ ·
added 6 exports
cml_power, get_eRm_arg, mix_mod, opt_n, p_curve, p_ncurve - RR 4.5.0 released · 2025-04-11
- 0.2.12024-09-16 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.2.0
- 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.12021-05-04 · diff ↗ ·
added 9 exports
post_hocChange, post_hocPCM, post_hocRM, powerChange, powerPCM, powerRM, sa_sizeChange, sa_sizePCM, sa_sizeRM - RR 4.0.0 released · 2020-04-24
- 0.1.02019-09-20
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-09-20
- Total releases
- 5 / 7 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 91 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("tcl")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.