R/PROPs.R

Defines functions PROPs

Documented in PROPs

PROPs <-
function(X, dummy=TRUE, pos=NULL){
  if (dummy == TRUE){
    X = as.matrix(X[,c(pos)])
    salida = (colMeans(X))*100
  } else {
    salida = "At least one qualitative independent variable are needed (excluding the intercept)"
  }
  return(salida)
}

Try the multiColl package in your browser

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

multiColl documentation built on July 21, 2022, 9:06 a.m.