calc_dp: Calculate Gries' Deviation of Proportions

View source: R/calc_disp.R

calc_dpR Documentation

Calculate Gries' Deviation of Proportions

Description

Computes the Deviation of Proportions (DP) measure developed by Stefan Th. Gries. DP measures how evenly distributed a term is across all parts of the corpus. The normalized version (DP_norm) is returned, which ranges from 0 (evenly distributed) to 1 (extremely clumped distribution).

Usage

calc_dp(tdm)

Arguments

tdm

A term-document matrix

Value

A numeric vector of normalized DP values for each term

References

Gries, S. T. (2008). Dispersions and adjusted frequencies in corpora. International Journal of Corpus Linguistics, 13(4), 403-437.


qtkit documentation built on April 4, 2025, 4:47 a.m.