by Lauren McNamara, June 2021
This library provides functions for calculations in statistical procedures used in nonparametric methods.
To load:
library(devtools)
install_github("lamcnamara/htr1")
library(htr1)
Functions
findDiffs(xvals,yvals)
Example
(Data from Unit II notes, chapter 4 example #1)
modela<-c(17,18,19,22,23,25,26,29,31,33)
modelb<-c(21,24,27,28,30,32,34,35,36,39,41)
findDiffs(modela,modelb)
[1] -12 -10 -9 -8 -7 -6 -5 -5 -5 -4 -4 -3 -3 -2 -2 -2 -1 -1 -1 -1 -1
[22] 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 5 5
[43] 5 5 5 5 6 6 6 6 6 7 7 7 7 8 8 8 8 8 9 9 9
[64] 9 9 10 10 10 10 10 10 10 11 11 11 11 12 12 12 12 13 13 13 13
[85] 13 14 14 14 15 15 15 16 16 16 16 17 17 17 17 18 18 18 19 19 20
[106] 21 22 22 23 24
median(findDiffs(modela,modelb))
[1] 7.5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.