nonparTrendR
is an R package implementing a
nonparametric trend test for independent and dependent samples, based on
Bathke (2009). It detects consistent monotonic trends (increasing or
decreasing) across time points or ordered groups, while accounting for
within-subject correlations in repeated measures.
htest
objects for easy
integration.Bathke, A. C. (2009).
A unified approach to nonparametric trend tests for dependent and
independent samples.
Metrika, 69(1), 17โ29.
# Install from CRAN (after release)
install.packages("nonparTrendR")
# Or install development version from GitHub
::install_github("yourusername/nonparTrendR") devtools
library(nonparTrendR)
<- list(
data_indep c(6.62, 6.65, 5.78), # Group 1
c(6.25, 6.95, 5.61), # Group 2
c(7.11, 5.68, 6.23) # Group 3
)
nonparTrendR_test(data_indep, type = "I", alternative = "increasing")
<- matrix(c(
data_dep 8, 6, 5, 5, 4,
7, 6, 6, 6, 6,
6, 5, 5, 4, 2
nrow = 3, byrow = TRUE)
),
nonparTrendR_test(data_dep, type = "D", alternative = "decreasing")