4 \title{ Compute specificites association score }
7 Compute specifities association score, i.e. an indicator of the association
8 between tokens and sub-corpus, given a lexical table
12 specificites(lexicaltable, types=NULL, parts=NULL)
17 \item{lexicaltable}{ a complete lexical table, i.e. a numeric matrix where
18 each line is a token and each column a part of a corpus. Each cell give the
19 frequency of the given token in the corresponding part of the corpus. }
21 \item{types}{ Indicate for which rows the specificity index must be computed.
22 If \code{NULL}, the specificity index is computed for every form. If
23 \code{types} is a character vector, it indicates the name of the row of
24 \code{lexicaltable} to be used (an error is thrown if \code{clt} has no row
25 names). If it is an integer vector, it indicates the index of the row to be
28 \item{parts}{ Indicate for which columns the specificity index must be computed.
29 If \code{NULL}, the specificity index is computed for every part. If
30 \code{parts} is a character vector, it indicates the name of the columns of
31 \code{lexicaltable} to be used (an error is thrown if \code{clt} has no
32 column names). If it is an integer vector, it indicates the index of the
39 The fonction return a matrix of \code{nrow(clt) * ncol(clt)} (the number of
40 rows and columns may be reduced using \code{types} or \code{parts}), each cell
41 giving the frequency index.
46 Lafon P. (1980) Sur la variabilit \' e de la fr \' e quence des formes dans un corpus,
47 Mots, 1, pp. 127--165.
50 \author{Sylvain Loiseau}
52 \seealso{ \code{\link{specificites.probabilities}}, \code{\link{specificites.lexicon}} }
56 specificites(robespierre);
57 specificites(robespierre, types="peuple", parts=c("D9", "D10"));