View source: R/ttmatrixFromQQ.R
ttmatrixFromQQ | R Documentation |
Construct a description matrix from a qq vector
ttmatrixFromQQ(qq, n, cnames, sparse = "no")
qq |
Commonality function |
n |
Dimension of the frame |
cnames |
A character vector containing the names of the elements of the frame of discernment |
sprase |
= c("yes","no") whether to use sparse matrix. Default = "no". |
tt A corresponding logical description matrix
Peiyuan Zhu
tt<- t(matrix(c(1,0,1,1),ncol = 2))
m<- c(.9,.1)
cnames <- c("yes","no")
x<- bca(tt, m, cnames=cnames, method="ezt-m")
ttmatrixFromQQ(x$qq,as.integer(x$infovar[1,2]), cnames)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.