FactoClass.tex {FactoClass}R Documentation

Table of Coordinates, Aids of Interpretation of the Principal Axes and Cluster Analysis in LaTeX format.

Description

The coordinates, aids of interpretation and results of cluster analysis of an object of class FactoClass are written in tables for edition in LaTeX format and written in a file.

Usage

FactoClass.tex(FC,job="",append=TRUE, dir = getwd(), p.clust = FALSE )

## S3 method for class 'FactoClass.tex':
print(x, ...)

latexDF(obj, job="latex" ,tit="" ,lab="" ,append=TRUE ,dec=1,
                     dir = getwd() , to.print = TRUE )
roundDF(tabla,dec=1)

    

Arguments

FC object of class FactoClass.
job A name to identify the exit.
append if is 'TRUE' the exit in LaTeX format is added to the file.
dir name of the directory in which the file is kept.
p.clust the value of this parameter is 'TRUE' or 'FALSE' to print or not the cluster of each element.
tabla object of class 'data frame'.
dec number of decimal.
x object of class FactoClass.tex
obj object of class data.frame.
tit title of the table in LaTeX format.
lab label of the table in LaTeX format.
to.print if it is 'TRUE' the table is also printed in the console.
...

Details

This function helps with the construction of tables in LaTeX format. Besides, it allows a easy reading of the generated results by FactoClass. The function latexDF is an entrance to xtable and turns an object of class data.frame a table in LaTeX format.

Value

object of class FactoClass.tex with the following characteristics:

tvalp eigenvalues * 1000.
c1 eigenvectors.
co coordinates of the columns.
col.abs contribution of each column to the inertia of the axis (percentage).
col.rel quality of representation of each column (percentage).
col.cum quality of representation of each column accumulated in the subspace (percentage).
li coordinates of the rows.
row.abs contribution of each rows to the inertia of the axis (percentage).
row.rel quality of representation of each rows (percentage).
row.cum quality of representation of each rows accumulated in the subspace (percentage).
indices table of indices of level generated by the Ward cluster analysis.
cor.clus coordinates of the center of gravity of each cluster.
clus.summ summary of the cluster.
carac.cate cluster characterization by qualitative variables.
carac.cont cluster characterization by quantitative variables.
cluster vector indicating the cluster of each element.

Author(s)

Pedro Cesar del Campo pcdelcampon@unal.edu.co, Campo Elias Pardo cepardot@unal.edu.co

Examples


data(BreedsDogs)

BD.act <- BreedsDogs[-7]  # active variables
BD.ilu <- BreedsDogs[7]   # illustrative variables

# MCA

FaCl <- FactoClass( BD.act, dudi.acm,
                    scanFC = FALSE, dfilu = BD.ilu, nfcl = 10, k.clust = 4 )

FactoClass.tex(FaCl,job="BreedsDogs1", append=TRUE)
FactoClass.tex(FaCl,job="BreedsDogs", append=TRUE , p.clust = TRUE)


[Package FactoClass version 0.7.6 Index]