* Test specificities *

Share:

Description

Utility functions to play with specificities.

Usage

1
2
3
4
5
6
7
8
	specif_calc(parts, data, token="peuple", method="base")
	specif_value(N, n, K, k, method="base")
	specif_cdf(parts, data, token="peuple", R=10, new=TRUE, method="base", ...)
	specif_cdmo(parts, data, token="peuple")
	specif_density(parts, data, token="peuple", R=10, new=TRUE, ...)
	specif_mode2cdf(data, maxi=sum(data), token="peuple", ...)
	specif_mode2density(data, maxi=sum(data), token="peuple", ...)
	specif_plot(d, data, token="peuple", R=NULL, method="base", ...) 

Arguments

parts

vector of part indices

d

index of single part

data

table of frequencies

token

token for which to determine the specificity

maxi

maximum part size

R

radius of interval around mode

new

if TRUE start a new window device

method

method used to calculate the specificity

...

other arguments passed to plot functions

N

number of balls in the urn

K

number of white balls in the urn

n

number of balls drawn from the urn

k

vector of observed white balls

Details

Utility functions to play with specificities.

The possible method names are : "base", "log", "gap", "scale" or "logscale".

Value

specif_calc returns a vector of specificities.

Author(s)

Bernard Desgraupes - bernard.desgraupes@u-paris10.fr
University of Paris Ouest - Nanterre - Lab Modal'X

Sylvain Loiseau - sylvain.loiseau@univ-paris13.fr
University Paris-13 - Lab LDI

References

P. Lafon Sur la variabilité de la fréquence des formes dans un corpus, Mots, octobre 1980, N°1. pp. 127-165.

Examples

1
2
3
4
5
6

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.