collex_llr: Log-likelihood ratio

Description Usage Arguments Value Examples

View source: R/collex_llr.R

Description

Perform log-likelihood ratio as the association/collostruction strength.

Usage

1
collex_llr(df = NULL, collstr_digit = 3)

Arguments

df

The output of assoc_prepare.

collstr_digit

The numeric vector for floating digits of the collostruction strength. The default is 3.

Value

A tibble consisting of the collocates (column w), co-occurrence frequencies with the node (column a), the expected co-occurrence frequencies with the node (column a_exp), the direction of the association (e.g., attraction or repulsion) (column assoc), the log-likelihood ratio as the association/collostruction strength measure (column llr). and two uni-directional association measures of Delta P.

Examples

1
2
3
4
5
6
7
out <- colloc_leipzig(leipzig_corpus_list = demo_corpus_leipzig,
                      pattern = "mengatakan",
                      window = "r",
                      span = 3L,
                      save_interim = FALSE)
assoc_tb <- assoc_prepare(colloc_out = out, stopword_list = stopwords)
am_llr <- collex_llr(df = assoc_tb, collstr_digit = 3)

gederajeg/collogetr documentation built on April 16, 2020, 11:58 a.m.