Learn R Programming

ProduceR (version 1.0)

toc_score: Scoring significativity of difference between two values x and y

Description

Difference score between x and y (0 = no significant difference, >0 = presence of significant difference)

Usage

toc_score(x, y, a)

Value

numeric

Arguments

x

(num) First value to compare

y

(num) Second value to compare

a

(num) Absolute difference threshold below which all differences are considered normal

Examples

Run this code
toc_score(15, 1500, a = 500) # 1.91: significant difference
toc_score(1432, 1501, a = 100) # 0: non-significant difference

Run the code above in your browser using DataLab