con_ta: Contingency Table Generation

Description Usage Arguments Value See Also Examples

View source: R/con_ta.R

Description

Generate Contingency table for Svensson's Method

Usage

1
con_ta(x, y, level = 5)

Arguments

x

a numeric vector of data values, each element range from 1 to level.

y

a numeric vector of data values, must have same length as x.

level

the dimension of the contingency table, the default is 5.

Value

A contingency table based on x and y.

See Also

sresult for summary of Svensson's method analysis.

Examples

1
2
3
x <- c (1:5,5:1)
y <- c(1:5,1,1,5,4,1)
con_ta(x,y,)

Example output

     [,1] [,2] [,3] [,4] [,5]
[1,]    0    0    1    0    1
[2,]    0    1    0    1    0
[3,]    0    0    1    0    0
[4,]    0    1    0    0    0
[5,]    2    0    0    1    1

svenssonm documentation built on May 2, 2019, 2:43 a.m.