A function to generate input table for performing Distinctive Collexeme Analysis.
assoc_prepare_dca(assoc_tb_df = NULL)
assoc_tb_df | The nested tibble output from |
---|
A tibble with columns for collocates, frequency of the collocates with Construction/Word A and B, other frequencies in the cross-tabulation (i.e. Cell C and D), and the Expected frequencies of the collocates with Construction/Word A as the reference item.
if (FALSE) { # run assoc_prepare() first from the output of colloc_leipzig() assoc_tb <- assoc_prepare(colloc_out = colloc_leipzig_output, window_span = "r1", per_corpus = FALSE, stopword_list = NULL, float_digits = 3L) # then run assoc_prepare_dca() dca_tb <- assoc_prepare_dca(assoc_tb) }