Learn R Programming

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 about Svensson's Method: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)

Copy Link

Version

Install

install.packages('svenssonm')

Monthly Downloads

124

Version

0.1.0

License

GPL-3

Maintainer

Yingyan Zhu

Last Published

August 3rd, 2017

Functions in svenssonm (0.1.0)

con_ta

Contingency Table Generation
indichange

Individual Change
pa

Percentage Agreement
sresult

Summary for Svensson's Method
syschange

Systematic Change