comf (version 0.1.12)

calcTPRTSV: 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)

Value

calcTPRTSV returns a single value presenting the true positive rate between actual and predicted thermal sensation votes.

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'

Author

Marcel Schweiker

References

Schweiker & Wagner (2015) <doi:10.1016/j.buildenv.2015.08.018>

See Also

see also calcMeanBias, calcAvgAcc

Examples

Run this code
## 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)

Run the code above in your browser using DataLab