[R] Did behavior of "paired" argument in t.test() change?

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Tue Nov 4 18:40:21 CET 2025


В Tue, 4 Nov 2025 11:22:57 -0600
Robert Baer via R-help <r-help using r-project.org> пишет:

> Errorin t.test.formula(value ~ time, data = data_long, paired =
> TRUE) :
> cannot use 'paired' in formula method

This was changed in R-4.4.0:
https://bugs.r-project.org/show_bug.cgi?id=14359

The news item (see news(grepl('paired', Text))) recommends the use of
Pair(x1, x2) ~ 1 instead of the 'paired' argument. A further fix is
currently in R-devel (but not R-patched): without it, Pair(x1, x2) does
not handle the 'subset' argument.

-- 
Best regards,
Ivan



More information about the R-help mailing list