if (FALSE) {
#Note: package biclust needed.
#This is an example of using this function with a certain database
#made up of body dimensions related to the lower body part.
data <- dataUser[(waist >= 58) & (waist < 115),] #dataUser is the user database.
rownames(data) <- 1:dim(data)[1]
waist <- data[,"WaistCircumference"]
waist_4 <- seq(58, 86, 4)
waist_6 <- seq(91, 115, 6)
waistCirc <- c(waist_4,waist_6)
nsizes <- length(waistCirc)
#Position of the body variables in the database:
lowerVars <- c(14, 17:25, 27, 28, 65:73, 75, 77:81, seq(100, 116, 2))
nBic <- c(2, 2, 4, rep(5, 7), 3, 3)
diffRanges <- list(c(14,20), c(24,30), c(24,30), c(33,39), c(29,35), c(29,35),
c(28,35), c(31,38), c(31,38), c(30,37), c(26,33), c(25,32))
percDisac <- 0.01
dir <- "/home/guillermo/"
res_bicl_antropom <- CCbiclustAnthropo(data,waist,waistCirc,lowerVars,
nsizes,nBic,diffRanges,percDisac,dir)
}
Run the code above in your browser using DataLab