R/percentilsArchetypoid.R

Defines functions percentilsArchetypoid

Documented in percentilsArchetypoid

percentilsArchetypoid <- function(column,indiv,data,digits){
 aux1 <- data[,colnames(data)[column]]  
 
 aux2 <- as.matrix(aux1)  
 
 Fn <- ecdf(aux2)
 
 aux3 <- Fn(data[indiv,colnames(data)[column]])
 
 round(aux3 * 100, digits = digits)
}

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.