calcTPRTSV: True Positive Rate between Predicted and Actual Thermal...

View source: R/calcTPRTSV.r

calcTPRTSVR 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)


marcelschweiker/comfort_R documentation built on Feb. 22, 2024, 9:04 p.m.