knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

svenssonm

The goal of svenssonm is to make it easier to realize Svensson's Method by R. Svensson's Method is a rank-invariant nonparametric method for the analysis of ordered scales which measures the level of change both from systematic and individual aspects. Please refer to the following dissertation for more detail information:Svensson E. Analysis of systematic and random differences between paired ordinal categorical data [dissertation]. Stockholm: Almqvist & Wiksell International; 1993.

Example

An example about how to get the results you want:

## basic example code
x <- c (1:5,5:1) #a numeric vector of data values
y <- c(1:5,1,1,5,4,1) #have same length as x
z <- con_ta(x,y,5) #The contengency table, a two-dimension matrix.
sresult(z) #Get all the results for Svensson's method.

Installation Instructions

install.packages("svenssonm")
library(svenssonm)

OR

install.packages("devtools")
devtools::install_github("lexizhu/svenssonm")
library(svenssonm)

The Main Components

Contingency Table Generation: con_ta(x, y, level = 5)

Systematic Change: rp(t); rpse(t); rc(t); rcse(t)

Individual Change: rv(t); rvse(t); iv(t); ralpha(t); pralpha(t)

Percentage Agreement: pa(t)

Summary for Svensson's Method: sresult(t)



lexizhu/svenssonm documentation built on May 23, 2019, 7:21 a.m.