Learn R Programming

dst (version 1.8.0)

ttmatrixFromQQ: Construct a description matrix from qq function.

Description

Construct a description matrix from qq function.

Usage

ttmatrixFromQQ(qq, n, valuenames)

Value

ttmat A corresponding logical description matrix

Arguments

qq

Commonality function

n

Dimension of the frame

valuenames

Vector of valuenames

Author

Peiyuan Zhu

Examples

Run this code
tt<- t(matrix(c(1,0,1,1),ncol = 2))
m<- c(.9,.1)
cnames <- c("yes","no")
x<- bca(tt, m, cnames=cnames)
ttmatrixFromQQ(x$qq,as.integer(x$infovar[1,2]), unlist(x$valuenames))

Run the code above in your browser using DataLab