ttmatrixFromQQ: Construct a description matrix from a qq vector

View source: R/ttmatrixFromQQ.R

ttmatrixFromQQR Documentation

Construct a description matrix from a qq vector

Description

Construct a description matrix from a qq vector

Usage

ttmatrixFromQQ(qq, n, cnames, sparse = "no")

Arguments

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".

Value

tt A corresponding logical description matrix

Author(s)

Peiyuan Zhu

Examples

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)

RAPLER/dst-1 documentation built on June 2, 2025, 9:22 a.m.