Description Usage Arguments Value References Examples
The function to compute collocation association measure with the base 10 Log Odds Ratio (from Gries 2014).
1 | collex_logOR(df, collstr_digit = 3)
|
df |
The output of |
collstr_digit |
The numeric vector for floating digits of the collostruction strength. The default is |
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 Log10 Odds Ratio score (column logOR
),
and two uni-directional association measures of Delta P.
Gries, S. T. (2014). Coll.analysis 3.5. A script for R to compute perform collostructional analyses. http://www.linguistics.ucsb.edu/faculty/stgries/teaching/groningen/index.html.
1 2 3 4 5 6 7 8 9 | out <- colloc_leipzig(leipzig_corpus_list = demo_corpus_leipzig,
pattern = "ke", # it is a preposition meaning 'to(wards)'
window = "r",
span = 2L,
save_interim = FALSE)
assoc_tb <- assoc_prepare(colloc_out = out,
stopword_list = collogetr::stopwords[collogetr::stopwords != "ke"])
collex_logOR(assoc_tb)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.