calcTPRTSV: Calculating the True Positive Rate between Predicted and...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/fctHelp.r

Description

calcTPRTSV calculates the true positive rate between predicted thermal sensation votes and actual obtained sensation votes

Usage

1
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, M. and Wagner, A. A framework for an adaptive thermal heat balance model (ATHB) Building and Environment, 2015, 94, 252-262

See Also

see also calcMeanBias, calcAvgAcc

Examples

1
2
3
4
5
6
7
8
## 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/comf documentation built on May 21, 2017, 6:41 p.m.