belplauEval {dst} | R Documentation |
Evaluate type I, II errors
Description
Evaluate type I, II errors
Usage
belplauEval(
bel_plau,
true_order,
var = "rplau",
err = "type I",
is_belplau = TRUE
)
Arguments
bel_plau |
belplau object or a vector whose ordering is compared |
true_order |
a vector representing the true ordering |
var |
="rplau" variable name of the belplau to be used as ordering |
err |
="type I" type of error to be evaluated |
is_belplau |
=TRUE whether bel_plau is a belplau object |
Value
Type I, II, III error by comparing two orderings
Author(s)
Peiyuan Zhu
Examples
x <- bca(tt = matrix(c(0,1,1,1,1,0,1,1,1),nrow = 3,
byrow = TRUE), m = c(0.2,0.5, 0.3),
cnames = c("a", "b", "c"), varnames = "x", idvar = 1)
belplau(x)
y <- bca(tt = matrix(c(1,0,0,1,1,1),nrow = 2,
byrow = TRUE), m = c(0.6, 0.4),
cnames = c("a", "b", "c"), varnames = "y", idvar = 1)
xy <- nzdsr(dsrwon(x,y))
z<-belplau(xy,h=ttmatrixPartition(xy$infovar[2],xy$infovar[2]))
belplauEval(z,c(0,1,0))
[Package dst version 1.7.0 Index]