get_fwcp: Get the log Frequency Weighted Competitor Probability (FWCP)

Description Usage Arguments Value Examples

View source: R/extensions.R

Description

Get the log Frequency Weighted Competitor Probability (FWCP)

Usage

1
get_fwcp(target_freq, competitors_freq, pad = 0, add_target = FALSE)

Arguments

target_freq

Frequency of target word

competitors_freq

Numeric vector containing the frequencies of competitors (including itself)

pad

Value to add to frequencies before taking log; if your minimum frequency is 0, consider adding a value between 1 and 2; if your minimum frequency is between 0 and 1, consider adding 1

add_target

Boolean; set to TRUE if you want the target frequency added to the denominator; only do this if the target is not already included in the competitor set (e.g., if the target is in the lexicon, it will be captured as its own neighbor, its own cohort, etc.)

Value

log FWCP

Examples

1
get_fwcp(100, c(10, 50), pad = 1)

LexFindR documentation built on Oct. 29, 2021, 9:07 a.m.