Learn R Programming

mpa (version 0.7.3)

matriz.mpa: Calculation of co-occurrences matrix and matrix associations

Description

Calculates the co-occurrences matrix and the matrix associations from the resulting object of the leer.mpa function.

Usage

matriz.mpa(leer.mpa, sep.ind="ind0", sep.pal="/", fmin=3, cmin=3)

Arguments

leer.mpa
Resulting vector from the leer.mpa function.
sep.ind
Individuals separator by default is "ind0".
sep.pal
Word separator by default is "/"
fmin
Minimal appearance frequency of key words inside the corpus.
cmin
Minimal co-occurrence between words.

Value

A list that contains:
Matriza
Associations matrix.
Matrizc
Co-occurrence matrix.
Palabras
Vector from the different words that appears in the corpus (dictionary).
tl
Lexical table

Details

Individuals separator sep.ind must be the same for all individuals in the corpus, just like the sep.pal. The function eliminates key words with lower frequency than fmin and eliminates co-occurrences under cmin.

References

Courtial, J.P. (1990), Introduction a la Scientom\'etrie, Anthropos - Econ\'omica, Paris.

Examples

Run this code
data(revista)
mat <- matriz.mpa(revista, fmin=3, cmin=1)
mat$Matriza
mat$Matrizc
diag(mat$Matrizc)

Run the code above in your browser using DataLab