An internal function called by collex_TScore to compute T-Score values

Tscore_compute(a, a_exp)

Arguments

a

frequency co-occurrence of a collocate and the nodeword.

a_exp

expected frequency co-occurrence of the collocate and the nodeword.

Value

A double-numeric value of T-Score

Examples

# the numbers below are made-up examples # for the collocate pattern "tindak pidana" 'legal act' a <- 702 total_freq_w1 <- 1183 total_freq_w2 <- 1251 corpus_size <- 5763049 a_exp <- (total_freq_w1 * total_freq_w2)/corpus_size (tscore <- Tscore_compute(a, a_exp))
#> [1] 26.48559