MyNixOS website logo
Description

A Nonparametric Trend Test for Independent and Dependent Samples.

Implements the nonparametric trend test for one or several samples as proposed by Bathke (2009) <doi:10.1007/s00184-008-0171-x>. The method provides a unified framework for analyzing trends in both independent and dependent data samples, making it a versatile tool for various study designs. The package allows for the evaluation of different trend alternatives, including two-sided (general trend), monotonic increasing, and monotonic decreasing trends. As a nonparametric procedure, it does not require the assumption of data normality, offering a robust alternative to parametric tests.

๐Ÿ“ˆ nonparTrendR

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.


โœจ Features

  • ๐Ÿ“Œ Supports both independent and repeated measures designs.
  • ๐Ÿ“Š Rank-based test statistic (ฮฝฬ‚) with two-sided and directional alternatives.
  • ๐Ÿ”— Handles within-subject dependencies in longitudinal data.
  • โœ… Returns standard htest objects for easy integration.

๐Ÿ“š Reference

Bathke, A. C. (2009).
A unified approach to nonparametric trend tests for dependent and independent samples.
Metrika, 69(1), 17โ€“29.


๐Ÿ›  Installation

# Install from CRAN (after release)
install.packages("nonparTrendR")

# Or install development version from GitHub
devtools::install_github("yourusername/nonparTrendR")

๐Ÿš€ Quick Example

Independent samples

library(nonparTrendR)

data_indep <- list(
  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")

Dependent samples


data_dep <- matrix(c(
  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")

๐Ÿงช Example Use Cases

  • Clinical trials (longitudinal symptom scores)
  • Industrial process monitoring
  • Customer metrics over time
  • Seasonal survey responses.
Metadata

Version

0.1.0

License

Unknown

Platformsย (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows