citcdf 1.1.0
-
- now draws without replacement, so the conditional permutation
X_staris a genuine permutation ofX(rather than a re-sample) and preservesX’s empirical marginal distribution. Because this changes both the RNG stream and the null distribution, permutation p-values fromcit_perm(),cit_multi()andcit_gsa()will differ from previous versions. Of note, previous scheme could be anti-conservative, and some limiting cases were badly handled. - now uses QR decomposition through
.lm.fit()to be robust to badly scaled covariates (eg library sizes). - now weights draws with a Gaussian kernel on the fitted values (bandwidth
sd(fit) * n^(-1/3)) rather than previous1/(difference in fitted values)^2(each observation effectively drew from its two nearest neighbours whatever the sample size, leading to bad calibration of the test with too many false positives). This also changes the null distribution.
- now draws without replacement, so the conditional permutation
space_y = TRUEnow uses the same y-threshold grid across all tests:cit_asymp(), andcit_gsa()adoptcit_perm()’s upper endpointmax(Y)instead of the second-largest observation. Asymptotic results will be different than previously with defaults, although calibration remains unchanged.similarly,
ccdf()now uses the same y-threshold grid as the tests whenspace_y = TRUE(starting at the smallest non-zero observation rather than the second smallest). CCDF values fromccdf(space_y = TRUE)therefore differ from previous versions (the defaultspace_y = FALSEis unaffected). It also no longer errors when allYare equal.first CRAN release