calcTPRTSV {comf} | R Documentation |
True Positive Rate between Predicted and Actual Thermal Sensation Vote
Description
calcTPRTSV
calculates the true positive rate between
predicted thermal sensation votes and actual obtained sensation votes
Usage
calcTPRTSV(ref, pred)
Arguments
ref |
a numeric item or vector containing categorical actual thermal sensation votes coded from -3 'cold' to +3 'hot' |
pred |
a numeric item or vector containing categorical predicted thermal sensation votes coded from -3 'cold' to +3 'hot' |
Value
calcTPRTSV
returns a single value presenting the true positive
rate between actual and predicted thermal sensation votes.
Author(s)
Marcel Schweiker
References
Schweiker & Wagner (2015) <doi:10.1016/j.buildenv.2015.08.018>
See Also
see also calcMeanBias
, calcAvgAcc
Examples
## Define data
ref <- rnorm(5) # actual thermal sensation votes
ref <- cutTSV(ref)
pred <- rnorm(5) # predicted thermal sensation votes
pred <- cutTSV(pred)
calcTPRTSV(ref, pred)
[Package comf version 0.1.12 Index]