getTPR {Qval} | R Documentation |
Caculate true-positive rate (TPR)
Description
Caculate true-positive rate (TPR)
Usage
getTPR(Q.true, Q.orig, Q.sug)
Arguments
Q.true |
The true Q-matrix. |
Q.orig |
The Q-matrix need to be validated. |
Q.sug |
The Q-matrix that has being validated. |
Details
TPR is defned as the proportion of correct elements which are correctly retained:
where denotes the
k
th attribute of item in the true Q-matrix (
Q.true
),
denotes
k
th attribute of item i
in the original Q-matrix(Q.orig
),
denotes
k
th attribute of item i
in the suggested Q-matrix(Q.sug
),
and is the indicator function.
Value
A numeric (TPR index).
Examples
library(Qval)
set.seed(123)
example.Q1 <- sim.Q(5, 30)
example.Q2 <- sim.MQ(example.Q1, 0.1)
example.Q3 <- sim.MQ(example.Q1, 0.05)
TPR <- getTPR(example.Q1, example.Q2, example.Q3)
print(TPR)
[Package Qval version 0.1.7 Index]