Learn R Programming

tcl

Testing in Conditional Likelihood Context

An implementation of hypothesis testing in an extended Rasch modelling 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 and the level alpha of the test. Thirdly, functions to evaluate the so-called post hoc power of the tests. This is the power of the tests given 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 the delta method.

Copy Link

Version

Install

install.packages('tcl')

Monthly Downloads

176

Version

1.0.1

License

GPL-2

Maintainer

Clemens Draxler

Last Published

October 6th, 2025

Functions in tcl (1.0.1)

tcl_scorefun

Computation of score function.
post_hocRM

Power analysis of tests of invariance of item parameters between two groups of persons in binary Rasch model
powerChange

Power analysis of tests in context of measurement of change using LLTM
sa_sizeChange

Sample size planning for tests in context of measurement of change using LLTM
sa_sizePCM

Sample size planning for tests of invariance of item-category parameters between two groups of persons in partial credit model
powerPCM

Power analysis of tests of invariance of item parameters between two groups of persons in partial credit model
powerRM

Power analysis of tests of invariance of item parameters between two groups of persons in binary Rasch model
tcl_hessian

Computation of Hessian matrix.
sa_sizeRM

Sample size planning for tests of invariance of item parameters between two groups of persons in binary Rasch model
LLTM_test

Testing linear restrictions on parameter space of item parameters of RM.
get_eRm_arg

Extract Arguments from an eRm Object
change_test

Tests in context of measurement of change using LLTM.
post_hocChange

Power analysis of tests in context of measurement of change using LLTM
mix_mod

Mixed model considering the effects of multiple covariates .
opt_n

Computes the optimal sample size for item parameter invariance tests.
invar_test

Test of invariance of item parameters between two groups.
cml_power

Power and Power Curve Functions
discr_test

Testing item discriminations
post_hocPCM

Power analysis of tests of invariance of item parameters between two groups of persons in partial credit model