wam: Compute association measure and construct a...

Description Usage Arguments Value See Also Examples

View source: R/wam.object.R

Description

Compute association measure and construct a WordAssociation-class object.

Usage

1
wam(data, measure = "loglikelihood", ...)

Arguments

data

: A data frame with the following columns: N, n, K, k, types, parts:

  • Nnumber of tokens in the corpus

  • nnumber of tokens in the subcorpus

  • Kfrequency of the type in the corpus

  • kfrequency of the type in the subcorpus

  • typesOptional : linguistic types

  • partsName of the subset of the corpus with which the attraction is measured

measure

a function implementing statistical attraction measures. These functions must accept 'N', 'n', 'K' and 'k' arguments. See the help page wam-functions.

...

argument provided to the function of the "measure" parameter.

Value

a WordAssociation-class object

See Also

WordAssociation-class, wam-functions

Examples

1
2
data(robespierre)
wam(data=robespierre, measure = c("chisq", "loglikelihood"))

sylvainloiseau/wam documentation built on Feb. 12, 2020, 12:30 a.m.