Description Usage Arguments Value Examples
View source: R/collex_TScore.R
An internal function called by collex_TScore
to compute T-Score values
1 | Tscore_compute(a, a_exp)
|
a |
frequency co-occurrence of a collocate and the nodeword. |
a_exp |
expected frequency co-occurrence of the collocate and the nodeword. |
A double-numeric value of T-Score
1 2 3 4 5 6 7 8 | # 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.