MyNixOS website logo
Description

Functions and Data for the Book "Applied Nonparametric Statistical Methods", 5th Edition.

Functions and data to accompany the 5th edition of the book "Applied Nonparametric Statistical Methods" (4th edition: Sprent & Smeeton, 2024, ISBN:158488701X), the revisions from the 4th edition including a move from describing the output from a miscellany of statistical software packages to using R. While the output from many of the functions can also be obtained using a range of other R functions, this package provides functions in a unified setting and give output using both p-values and confidence intervals, exemplifying the book's approach of treating p-values as a guide to statistical importance and not an end product in their own right.

ANSM5

The ANSM5 package provides a number of functions and data to accompany the book “Applied Nonparametric Statistical Methods”, 5th edition (Smeeton, Spencer & Sprent, 2024, Taylor Francis), the revisions from the 4th edition including a move from describing the output from a miscellany of statistical software packages to using R. While the output from many of the functions can also be obtained using a range of pre-existing R functions, this package provides functions in a unified setting and give output using both p-values and confidence intervals, exemplifying the book’s approach of treating p-values as a guide to statistical importance and not an end product in their own right.

Installation

You can install the development version of ANSM5 like so:

# install.packages("devtools")
devtools::install_github("neilhspencer/ANSM5")

Example

This is a basic example which shows you how to solve a common problem:

library(ANSM5)

#From Example 3.1 in "Applied Nonparametric Statistical Methods" (5th edition)
sgn.test(ch3$sampleI, 110)
#> 
#> Sign test for ch3$sampleI 
#> 
#> Null hypothesis: theta = 110 
#> Alternative hypothesis (2-sided): theta != 110 
#> 
#> Exact p-value: 0.10937
#> Exact 95% Confidence Interval (97.852% achieved) 
#> (11.00000, 151.00000)

#From Example 6.1 in "Applied Nonparametric Statistical Methods" (5th edition)
wilcoxon.mann.whitney(ch6$groupA, ch6$groupB)
#> 
#> Wilcoxon-Mann-Whitney test for ch6$groupA and ch6$groupB
#> 
#> H0: samples are from the same population
#> H1: samples differ in location
#> 
#> Statistic for exact test: 
#> 76 (rank sum from ch6$groupA), 155 (rank sum from ch6$groupB)
#> 21 (Mann-Whitney U from ch6$groupA), 89 (Mann-Whitney U from ch6$groupB) 
#> Exact p-value: 0.01587
#> Exact 95% Confidence Interval 
#> (-13.00000, -2.00000)

#From Example 7.6 in "Applied Nonparametric Statistical Methods" (5th edition)
friedman(ch7$pulse, ch7$time.period, ch7$student)
#> 
#> Friedman test for ch7$pulse and ch7$time.period (as groups) with ch7$student (as blocks)
#> 
#> H0: distributions of ch7$pulse are identical
#> H1: distributions differ
#> 
#> Statistic for exact test: 10.57143 
#> Exact p-value: 0.00272
Metadata

Version

1.1.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • 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