Learn R Programming

pamctdp (version 0.2.2)

ctdp2df: Convertion of Double Partition Contingency Table to Data Frame

Description

It build up a data.frame containing the four factors an the frequencies associtted to a Double Partition Contingency Table

Usage

ctdp2df(tab,rbl,cbl,iden=rep(3,4))

Arguments

tab
matrix or data.frame containing the contingency table
rbl
a numeric vector indicating the row numbers for each block of rows
cbl
a numeric vector indicating the column numbers for each block of columns
iden
number of characters of each factor to paste for the row identifications

Value

  • Returns a data.frame containing :
  • Jfactor identifying column partition
  • Kfactor identifying CT columns
  • Lfactor identifying row partition
  • Ifactor identifying CT rows

encoding

latin1

Details

A data.frame with four factors an frequency column is made

References

Pardo Campo El�as (2005). An�lisis de correspondencias de tablas de contingencia estructuradas. In: Memorias del Coloquio Distrital de Matem�ticas y Estad�stica. Volume 7. Universidad Distrital, Bogot� http://www.docentes.unal.edu.co/cepardot/docs/ColoquioDistritalMatEst/AnalCorresTCE.pdf

Examples

Run this code
data(mores5)
attach(mores5)
ctdp2df(tab,rbl5,cbl5)
detach(mores5)

Run the code above in your browser using DataLab