imputeQQ | R Documentation |
Impute commonality values based on a closure matrix
imputeQQ(tty, tt1, tt2, q1, q2, tree_type = NULL)
tty |
A closure matrix |
tt1 |
A q1 support matrix |
tt2 |
A q2 support matrix |
q1 |
A named vector of commonality values |
q2 |
A named vector of commonality values |
tree_type |
tree_type to use M trees ("multiple") or 1 tree ("single"). Default = NULL |
Impute commonality values based on a closure matrix
x a list with two elements
q1 new commonality vector
q2 new commonality vector
Peiyuan Zhu
tt1 <- matrix(c(1,1,0,1,1,1), byrow=TRUE, nrow=2, dimnames=list(NULL,c("a","b","c")))
tt2 <- matrix(c(0,1,1,1,1,1), byrow=TRUE, nrow=2, dimnames=list(NULL,c("a","b","c")))
tty <- matrix(c(0,1,1,1,1,0,1,1,1,0,1,0), byrow=TRUE, nrow=4, dimnames=list(NULL,c("a","b","c")))
q1 <- c(1,0.9)
q2 <- c(1,0.8)
names(q1) <- nameRows(tt1)
names(q2) <- nameRows(tt2)
x <- imputeQQ(tty,tt1,tt2,q1,q2, tree_type = "single")
x$q1
x$q2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.