#' @param thres threshold to consider a coefficient to be equal to 0
#' @param tau threshold to say that EM algorithm has converged
#'
#' @param thres threshold to consider a coefficient to be equal to 0
#' @param tau threshold to say that EM algorithm has converged
#'
selectVariables <- function(phiInit,rhoInit,piInit,gamInit,
mini,maxi,gamma,glambda,X,Y,thres,tau)
{
selectVariables <- function(phiInit,rhoInit,piInit,gamInit,
mini,maxi,gamma,glambda,X,Y,thres,tau)
{