R/stepArchetypesRawData.R

Defines functions stepArchetypesRawData

Documented in stepArchetypesRawData

stepArchetypesRawData <- function(data,numArch,numRep=3,verbose=TRUE){
  
  mycall <- match.call()
  as <- list()
  for (i in 1:length(numArch)) {
    as[[i]] <- list()
    class(as[[i]]) <- "repArchetypes"
    for (j in seq_len(numRep)) {
      if (verbose) 
       cat("\n*** numArch=", numArch[i], ", rep=", j, ":\n", sep = "")
       as[[i]][[j]] <- archetypes(data, k = numArch[i], 
                                  family = archetypesFamily("original",scalefn = no.scalefn,
                                                                            rescalefn = no.rescalefn))
    }
  }
  return(structure(as, class='stepArchetypes',call=mycall))
}

Try the Anthropometry package in your browser

Any scripts or data that you put into this service are public.

Anthropometry documentation built on March 7, 2023, 6:58 p.m.